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>
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(auto) | utils::Visit (const std::variant< Args... > &var, Ts &&... ts) |
template<class... Args, class... Ts> | |
constexpr decltype(auto) | utils::Visit (std::variant< Args... > &var, Ts &&... ts) |
template<class... Args, class... Ts> | |
constexpr decltype(auto) | utils::Visit (std::variant< Args... > &&var, Ts &&... ts) |