strstream Class

Describes an object that controls insertion and extraction of elements and encoded objects using a stream buffer of class strstreambuf.

class strstream : public iostream 

Remarks

The object stores an object of class strstreambuf.

Note

This class is deprecated. Consider using stringstream or wstringstream instead.

Constructors

strstream

Constructs an object of type strstream.

Member Functions

freeze

Causes a stream buffer to be unavailable through stream buffer operations.

pcount

Returns a count of the number of elements written to the controlled sequence.

rdbuf

Returns a pointer to the stream's associated strstreambuf object.

str

Calls freeze, and then returns a pointer to the beginning of the controlled sequence.

Requirements

Header: <strstream>

Namespace: std

See Also

Reference

iostream

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions

Other Resources

strstream Members

<strstream> Members