Export (0) Print
Expand All

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 

The object stores an object of class strstreambuf.

Note Note

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

strstream

Constructs an object of type strstream.

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.

Header: <strstream>

Namespace: std

Show:
© 2014 Microsoft