Alexandria 2.32.0
SDC-CH common library for the Euclid project
|
This type can be used together with boost::apply_visitor to cast boost::variant with an unknown underlying type, to a Source::id_type. More...
#include <Source.h>
Public Member Functions | |
CastSourceIdVisitor ()=default | |
Source::id_type | operator() (const std::string &from) const |
template<typename From> | |
Source::id_type | operator() (const From &from, typename std::enable_if< is_integer< From >()>::type *=0) const |
template<typename From> | |
Source::id_type | operator() (const From &, typename std::enable_if<!is_integer< From >()>::type *=0) const |
Static Private Member Functions | |
template<typename From> | |
static constexpr bool | is_integer () |
This type can be used together with boost::apply_visitor to cast boost::variant with an unknown underlying type, to a Source::id_type.
|
default |
|
inlinestaticconstexprprivate |
Definition at line 107 of file Source.h.
Referenced by operator()(), and operator()().
|
inline |
Definition at line 124 of file Source.h.
References is_integer().
|
inline |
Definition at line 119 of file Source.h.
References is_integer().
|
inline |