kblib 0.2.3
General utilities library for modern C++
|
Performs a natural conversion to a stringlike type. More...
#include <kblib/stringops.h>
Public Types | |
using | type = T |
Non-arithmetic types are either already stringlike, or have no natural conversion to std::string. More... | |
Static Public Member Functions | |
static auto | convert (T &&in) -> type |
Returns the argument unchanged. More... | |
Performs a natural conversion to a stringlike type.
A natural conversion for an arithmetic type is std::to_string. For any other type, there is no assumed transformation, so they are passed through unchanged.
Definition at line 141 of file stringops.h.
using kblib::detail::str_type< T, void >::type = T |
Non-arithmetic types are either already stringlike, or have no natural conversion to std::string.
Definition at line 146 of file stringops.h.
|
inlinestatic |
Returns the argument unchanged.
Definition at line 150 of file stringops.h.