clear string stream c++ code example
Example: c++ clear stream
// EXAMPLE
ostringstream osTest;
osTest << "This is the stream\n";
osTest.clear();
osTest.str("");
/* SYNTAX
<your-stream-variable>.clear();
<your-stream-variable>.empty();
*/
/* HEADER(S)
#include <sstream>
*/