Top "Stringstream" questions

stringstream provides an interface to manipulate strings as if they were input/output streams.

Why was std::strstream deprecated?

I recently discovered that std::strstream has been deprecated in favor of std::stringstream. It's been a while since I've …

c++ stringstream strstream
How to use C++ String Streams to append int?

could anyone tell me or point me to a simple example of how to append an int to a stringstream …

c++ string stringstream
Getting a buffer into a stringstream in hex representation:

If I had a buffer like: uint8_t buffer[32]; and it was filled up completely with values, how could I …

c++ stringstream
How to test whether stringstream operator>> has parsed a bad type and skip it

I am interested in discussing methods for using stringstream to parse a line with multiple types. I would begin by …

c++ stringstream
How to initialize a std::stringstream?

I need to concatenate a string with integers. To do that I'm using stringstream in the following way: int numPeople = 10; …

c++ stringstream
C++: vector to stringstream

I want to know if it is possible to transform a std::vector to a std::stringstream using generic programming …

c++ string stl vector stringstream
When should I use string instead of stringstream?

When should I use stringstream instead of string::append()? Supposing I'm going to catenate just strings. stringstream ss; ss <&…

c++ string performance iostream stringstream
how to reset stringstream object

I have a stringstream object and I am wondering how to reset it. stringstream os; for(int i = 0; i < 10; ++…

c++ stringstream
Is it possible to pass a stringstream as a function parameter?

Is it possible to pass in a stringstream and have the function write to it directly? I remember I saw …

c++ function parameter-passing stringstream
String to float using stringstream

I found this code online as a template for doing a string to float/int/double conversion. It's only here …

c++ stringstream