I need write data from some std::ostringstream
to another std::ostringstream
. Of course, I can use str()
function
std::ostringstream in;
std::ostringstream out;
in << "just a test"; // it's just an example. I mean that stream in is filled somewhere
...
out << in.str();
I'd like to know if there is more direct way to do the same.