C++11’s to_string function (from the <string>
header) returns the string
representation of its numeric argument. The function is overloaded for types int
, unsigned int
, long
, unsigned long
, long long
, unsigned long long
, float
, double
and long double
.