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

The class describes an object that controls extraction of elements and encoded objects from a
stream buffer of class strstreambuf. The object stores an ojbect of class strstreambuf.
istrstream::istrstream
explicit istrstream(const char *ptr);
explicit istrstream(char *ptr);
istrstream(const char *ptr, streamsize count);
istrstream(char *ptr, streamsize count);
All the constructors initialize the base class by calling istream(sb), where sb is the stored
object of class strstreambuf. The first two constructors also initialize sb by calling
strstreambuf((const char *)ptr, 0). The remaining two constructors instead call
strstreambuf((const char *)ptr, count).
istrstream::rdbuf
strstreambuf *rdbuf() const
The member function returns the address of the stored stream buffer, of type pointer to
strstreambuf.
istrstream::str
char *str();
The member function returns rdbuf()-> str().
ostrstream
class ostrstream : public ostream {
public:
ostrstream();
ostrstream(char *ptr, streamsize count,
ios_base::openmode mode = ios_base::out);
strstreambuf *rdbuf() const;
void freeze(bool freezeit = true);
char *str();
streamsize pcount() const;
};
The class describes an object that controls insertion of elements and encoded objects into a
stream buffer of class strstreambuf. The object stores an ojbect of class strstreambuf.