bsl::to_string

Convert a numeric value to a string.

Synopsis

Declared in <bslstl_string.h>

string
to_string(unsigned int 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, "%u", value)` would produce with a sufficiently large buffer.

Return Value

string representation of value

Parameters

NameDescription
valuenumeric value to convert