Interface class that defines a single method get() to convert a string into type T. Define template specialization of this class to define the conversion method for a particular type.
More...
#include <strtonum.h>
|
static T | get (const char *begin, const char *end) |
| Convert a string into type T. More...
|
|
template<typename T>
class dmlc::Str2T< T >
Interface class that defines a single method get() to convert a string into type T. Define template specialization of this class to define the conversion method for a particular type.
- Template Parameters
-
template<typename T >
static T dmlc::Str2T< T >::get |
( |
const char * |
begin, |
|
|
const char * |
end |
|
) |
| |
|
inlinestatic |
Convert a string into type T.
- Parameters
-
begin | Beginning of the string to convert |
end | End of the string to convert |
- Returns
- Converted value, in type T
The documentation for this class was generated from the following file:
- /work/mxnet/3rdparty/dmlc-core/include/dmlc/strtonum.h