Home » C++

C++

How to reuse an ostringstream?

December 5, 2017 C++ Leave a comment

Questions: I’d like to clear out and reuse an ostringstream (and the underlying buffer) so that my app doesn’t have to do as many allocations. How do I reset the object to its initial stat...