mxnet
Static Public Member Functions | List of all members
dmlc::Str2T< T > Class Template Reference

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>

Collaboration diagram for dmlc::Str2T< T >:
Collaboration graph

Static Public Member Functions

static T get (const char *begin, const char *end)
 Convert a string into type T. More...
 

Detailed Description

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
Typeof converted value

Member Function Documentation

template<typename T >
static T dmlc::Str2T< T >::get ( const char *  begin,
const char *  end 
)
inlinestatic

Convert a string into type T.

Parameters
beginBeginning of the string to convert
endEnd of the string to convert
Returns
Converted value, in type T

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