libpniio
|
default conversion trait More...
#include <conversion_trait.hpp>
Public Types | |
typedef T | result_type |
the type requested by the user More... | |
typedef T | read_type |
the type to read More... | |
Static Public Member Functions | |
static result_type | convert (read_type &&v) |
conversion function More... | |
static result_type | convert (const read_type &v) |
conversion function More... | |
Conversion trait used to convert parsed data to the requested type. In this default version nothing has to be done as the type read from the string is the same as the type requested by the user.
T | result type |
typedef T pni::io::conversion_trait< T >::read_type |
typedef T pni::io::conversion_trait< T >::result_type |
|
inlinestatic |
Conversion function taking an rvalue reference.
v | rvalue reference for type to convert |
|
inlinestatic |
Conversion function taking an lvalue reference to the source value.
v | lvalue reference to the value to convert |