|
Defines |
| #define | NMSTL_NAMESPACE_BEGIN namespace std {}; namespace nmstl { using namespace ::std; |
| #define | NMSTL_NAMESPACE_END }; |
| #define | NMSTL_ARITH_OPS(T, m) |
| #define | NMSTL_ARITH_OPS_T1(T, U, m) |
| #define | NMSTL_TO_STRING_INTL(T) |
| #define | NMSTL_TO_STRING(T) NMSTL_TO_STRING_INTL(T) using ::nmstl::to_string; using ::nmstl::operator +; |
| #define | NMSTL_TO_STRING_APPEND(A) inline string operator + (const string& t, const A& u) { return t + to_string(u); } |
| #define | NMSTL_TO_STRING_APPEND_T1(A) template<typename T> inline string operator + (const string& t, const A& u) { return t + to_string(u); } |
| #define | NMSTL_TO_STRING_APPEND_T2(A, B) template<typename T, typename U> inline string operator + (const string& t, const A,B& u) { return t + to_string(u); } |
| #define | NMSTL_TO_STRING_STREAM(A) |
| #define | NMSTL_TO_STRING_STREAM_T1(A) |
| #define | NMSTL_TO_STRING_STREAM_T2(A, B) |
| #define | NMSTL_SCALAR_TO_STRING(T) inline string to_string(const T& t) { ostringstream o; o << t; return o.str(); } NMSTL_TO_STRING_APPEND(T) |
Functions |
| template<class T> string | to_string (const T *t) |
| string | to_string (const char *ch) |
| string | to_string (const string &s) |
| string | to_string (const void *t) |
| | NMSTL_TO_STRING_APPEND (void *) |
| string | to_string (const bool &i) |
| | NMSTL_TO_STRING_APPEND (bool) |
| template<typename T, typename U> string | to_string (const map< T, U > &m) |
| | NMSTL_TO_STRING_STREAM_T2 (map< T, U >) |
| template<typename T> string | to_string (const vector< T > &m) |
| | NMSTL_TO_STRING_STREAM_T2 (vector< T, U >) |
| string | to_string (const type_info &i) |
| | NMSTL_SCALAR_TO_STRING (char) |
| | NMSTL_SCALAR_TO_STRING (unsigned char) |
| | NMSTL_SCALAR_TO_STRING (short) |
| | NMSTL_SCALAR_TO_STRING (int) |
| | NMSTL_SCALAR_TO_STRING (long) |
| string | to_string (const float &t) |
| | NMSTL_TO_STRING_APPEND (float) |
| string | to_string (const double &t) |
| | NMSTL_TO_STRING_APPEND (double) |
| string | to_human_readable (const void *data, int length) |
| string | to_human_readable (const string &s) |
| string | to_hex_string (const void *data, int length) |
| string | to_hex_string (const string &s) |
| template<typename Int> string | to_hex_string (Int l) |
| string | to_escaped_string (const void *data, int length) |
| string | to_escaped_string (const string &s) |
Variables |
| | NMSTL_NAMESPACE_BEGIN |
| | NMSTL_NAMESPACE_END |