Standard C++ Library Reference ISO/IEC (VERSION3)

strstream
class strstream : public iostream {
public:
strstream();
strstream(char *ptr, streamsize count,
ios_base::openmode mode =
ios_base::in | ios_base::out);
strstreambuf *rdbuf() const;
void freeze(bool freezeit = true);
char *str();
streamsize pcount() const;
};
The class describes an object that controls insertion and extraction of elements and encoded
objects using a stream buffer of class strstreambuf. The object stores an ojbect of class
strstreambuf.
strstream::freeze
void freeze(bool freezeit = true)
The member function calls rdbuf()-> freeze(freezeit).
strstream::pcount
streamsize pcount() const;
The member function returns rdbuf()-> pcount().
strstream::strstream
strstream();
strstream(char *ptr, streamsize count,
ios_base::openmode mode =
ios_base::in | ios_base::out);
Both constructors initialize the base class by calling streambuf(sb), where sb is the stored
object of class strstreambuf. The first constructor also initializes sb by calling
strstreambuf(). The second constructor initializes the base class one of two ways:
If mode & ios_base::app == 0, then ptr must designate the first element of an
array of count elements, and the constructor calls strstreambuf(ptr, count,
ptr).