userver: userver/utils/get_if.hpp File Reference
Loading...
Searching...
No Matches
get_if.hpp File Reference

Detailed Description

Definition in file get_if.hpp.

Go to the source code of this file.

#include <functional>
#include <memory>
#include <utility>
#include <userver/utils/meta_light.hpp>
+ Include dependency graph for get_if.hpp:

Namespaces

namespace  utils
 Utilities.
 

Functions

template<typename Leaf >
constexpr autoutils::GetIf (Leaf &&leaf)
 
template<typename Root , typename Head , typename... Tail>
constexpr autoutils::GetIf (Root &&root, Head &&head, Tail &&... tail)
 Dereferences a chain of indirections and compositions, returns nullptr if one of the chain elements is not set.