Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
Convert Class Reference

Static Public Member Functions

template<class T1 , class T2 >
static void convert (const T1 &src, T2 &dst)
 General case: dispatch to Converter<T1> traits.
 
template<class T2 >
static void convert (const char *src, T2 &dst)
 
template<class T >
static std::enable_if< std::is_arithmetic< T >::value &&!std::is_same< T, bool >::value >::type convert (const T &src, bool &dst)
 Numeric -> bool: zero is false, any other value is true.
 
template<class T >
static void convert (const T &src, std::ostream &ostr, const char *format)
 Formatted output.
 
template<class T >
static void convert (const T &src, std::ostream &ostr, const std::string &format)
 

Member Function Documentation

◆ convert()

template<class T1 , class T2 >
static void convert ( const T1 &  src,
T2 &  dst 
)
inlinestatic

General case: dispatch to Converter<T1> traits.

std::decay ensures array types (e.g. const char[N]) map to their pointer specialization. template <class T1, class T2> static void convert(const T1 & src, T2 & dst){ Converter<typename std::decay<T1>::type>::to(src, dst); } General case: dispatch to Converter<T1> traits.


The documentation for this class was generated from the following file: