Converts int to string, convenient but slow. More...
#include <string.hpp>
Public Member Functions | |
std::string | operator() (const int &input) |
Converts an integer into a string. More... | |
virtual | ~Converter () |
Private Attributes | |
char | buffer [31] |
Converts int to string, convenient but slow.
Slightly slower but convenient (no need for preallocating buffers) conversion of int to a string. This implementation is based on a technique similarly used in the stlsoft libraries.
Definition at line 57 of file string.hpp.
|
inlinevirtual |
Reimplemented in ecl::Converter< std::string, void >.
Definition at line 113 of file string.hpp.
|
inline |
Converts an integer into a string.
This is slow in comparison to the buffered character string functions. There is no need for error handling here as it will always work.
input | : the integer to be converted. |
Definition at line 77 of file string.hpp.
|
private |
Definition at line 121 of file string.hpp.