Site is currently on development mode

std::string conversion benchmark in C++

Last updated 2 years ago by Asit Dhal


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.

Read full Article