![]() |
|
DOC: Add class description. More...
#include <Convert.h>
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) |
DOC: Add class description.
|
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.
1.9.8