Last updated 2 years ago by Asit Dhalc
Most people use std::ostringstream to convert any fundamental data type to std::string.
There are two ways to convert any fundamental data to string.
std::ostringstream construction is expensive. So, it can be optimized to reuse the same object again and again.