strstream::strstream

strstream();
strstream(char *s, streamsize n,
    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: