carl  24.04
Computer ARithmetic Library
variant_util.h File Reference
#include <boost/variant.hpp>
#include <type_traits>
Include dependency graph for variant_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  carl::detail::variant_is_type_visitor< T >
 
struct  carl::detail::variant_extend_visitor< Target >
 
struct  carl::detail::variant_hash
 
struct  carl::detail::is_from_variant_wrapper< Check, T, Variant< Args... > >
 
struct  carl::is_from_variant< T, Variant >
 
struct  carl::convertible_to_variant< T, Variant >
 

Namespaces

 carl
 carl is the main namespace for the library.
 
 carl::detail
 

Functions

template<typename T , typename Variant >
bool carl::variant_is_type (const Variant &variant) noexcept
 Checks whether a variant contains a value of a fiven type. More...
 
template<typename Target , typename... Args>
Target carl::variant_extend (const boost::variant< Args... > &variant)
 
template<typename... T>
std::size_t carl::variant_hash (const boost::variant< T... > &value)