cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
clearing stringstream
clearing stringstream
Aug 26, 2008 at 8:50am UTC
hamsterman
(4538)
I want to empty a stringstream but I didnt find anything in the "Reference".
Aug 26, 2008 at 11:01am UTC
exception
(323)
That should do the trick:
1
2
3
std::stringstream ss;
// do sth with ss
ss.str(
""
);
Topic archived. No new replies allowed.