Alexandria 2.31.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 |
|
inline |
|
inline |
|
inline |