ostrstream Class

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

class ostrstream : public ostream 

Remarks

The object stores an object of class strstreambuf.

Note

This class is deprecated. Consider using ostringstream or wostringstream instead.

Constructors

ostrstream

Constructs an object of type ostrstream.

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

ostream

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions

Other Resources

ostrstream Members

<strstream> Members