Re: making stringstream empty
On Feb 21, 2:20pm, mthread <rjk...@gmail.com> wrote:
> Hi,
> I am using a variable of type stringstream in my application. I
> am adding some information in the stream. I would like to know what is
> the method to make the stream empty. Thanx in advance.
use str member function.
#include <sstream>
main()
{
std::stringstream sstr;
sstr << "hello";
sstr.str("");
}
Thanks,
Balaji.
|