kblib 0.2.3
General utilities library for modern C++
|
Converts arithmetic types to strings, but provides the identity transformation for all other types. More...
#include <kblib/stringops.h>
Public Types | |
using | type = std::string |
Arithmetic types can be converted into strings using the standard library. More... | |
Static Public Member Functions | |
static auto | convert (T in) -> std::string |
Forwards to std::to_string. More... | |
Converts arithmetic types to strings, but provides the identity transformation for all other types.
This is primarily an implementation detail of concat, provided in the main namespace because it might be generally useful.
Definition at line 114 of file stringops.h.
using kblib::detail::str_type< T, typename >::type = std::string |
Arithmetic types can be converted into strings using the standard library.
Definition at line 119 of file stringops.h.
|
inlinestatic |
Forwards to std::to_string.
in | A numeric value to convert to a string. |
Definition at line 125 of file stringops.h.