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. | |
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 51 of file string.hpp.
virtual ecl::Converter< std::string, int >::~Converter | ( | ) | [inline, virtual] |
Reimplemented in ecl::Converter< std::string, void >.
Definition at line 99 of file string.hpp.
std::string ecl::Converter< std::string, int >::operator() | ( | const int & | input | ) | [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 63 of file string.hpp.
char ecl::Converter< std::string, int >::buffer[31] [private] |
Definition at line 107 of file string.hpp.