Oli
0
Q:

c++ empty stream


// headers
#include <sstream>

// syntax
<stringstream-name>.clear();
<stringstream-name>.str();

// example
ostringstream oTestStrm;
oTestStrm << "Hello World!";
oTestStrm.clear();
oTestStrm.str("");
0

New to Communities?

Join the community