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

Detailed Description

Utility to define std::variant visitors in a simple way.

Definition in file overloaded.hpp.

Go to the source code of this file.

#include <variant>
+ Include dependency graph for overloaded.hpp:
+ This graph shows which files directly or indirectly include this file:

Classes

struct  utils::Overloaded< Ts >
 Utility to define std::variant visitors in a simple way. More...
 

Namespaces

namespace  utils
 Utilities.
 

Functions

template<class... Ts>
 utils::Overloaded (Ts...) -> Overloaded< Ts... >
 
template<class... Args, class... Ts>
constexpr decltype(autoutils::Visit (const std::variant< Args... > &var, Ts &&... ts)
 
template<class... Args, class... Ts>
constexpr decltype(autoutils::Visit (std::variant< Args... > &var, Ts &&... ts)
 
template<class... Args, class... Ts>
constexpr decltype(autoutils::Visit (std::variant< Args... > &&var, Ts &&... ts)