farm-ng-core
variant_utils.h File Reference
#include <variant>
Include dependency graph for variant_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  farm_ng::Overload< Ts >
 https://en.cppreference.com/w/cpp/utility/variant/visit More...
 
struct  farm_ng::HasType< T, Variant >
 
struct  farm_ng::HasType< T, std::variant< Us... > >
 

Namespaces

 farm_ng
 

Functions

template<class... Ts>
 farm_ng::Overload (Ts...) -> Overload< Ts... >
 
template<class Variant , typename... Alternatives>
decltype(auto) farm_ng::visit_variant (Variant &&variant, Alternatives &&... alternatives)
 https://gist.github.com/s3rvac/d1f30364ce1f732d75ef0c89a1c8c1ef More...
 

Variables

template<class >
constexpr bool farm_ng::AlwaysFalse = false
 https://en.cppreference.com/w/cpp/utility/variant/visit More...
 
template<class T , class Variant >
constexpr bool farm_ng::has_type_v = HasType<T, Variant>::value