to_string overloads
Declared in <bslstl_string.h>
Same as to_string for float.
string
to_string(double value);
» more...
converts a floating point value to a string with the same contents as what std::sprintf(buf, "%f", value) would produce for a sufficiently large buffer.
string
to_string(float value);
» more...
to_string functions are made friends to allow access to the internal short string buffer.
string
to_string(int value);
» more...
Constructs a string with contents equal to the specified value. The contents of the string will be the same as what std::sprintf(buf, "%ld", value) would produce with a sufficiently large buffer.
string
to_string(long value);
» more...
converts a floating point value to a string with the same contents as what std::sprintf(buf, "%Lf", value) would produce for a sufficiently large buffer.
string
to_string(long double value);
» more...
Constructs a string with contents equal to the specified value. The contents of the string will be the same as what std::sprintf(buf, "%lld", value) would produce with a sufficiently large buffer.
string
to_string(long long value);
» more...
Constructs a string with contents equal to the specified value. The contents of the string will be the same as what std::sprintf(buf, "%u", value) would produce with a sufficiently large buffer.
string
to_string(unsigned int value);
» more...
Constructs a string with contents equal to the specified value. The contents of the string will be the same as what std::sprintf(buf, "%lu", value) would produce with a sufficiently large buffer.
string
to_string(unsigned long value);
» more...
Constructs a string with contents equal to the specified value. The contents of the string will be the same as what std::sprintf(buf, "%llu", value) would produce with a sufficiently large buffer.
string
to_string(unsigned long long value);
» more...