Convert a numeric value to a string.
Synopsis
Declared in <bslstl_string.h>
string
to_string(long value);
Description
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.
Return Value
string representation of value
Parameters
Name |
Description |
value |
numeric value to convert |
Created with MrDocs