Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

strstream


inherits frombasic_ostream strstreaminherits frombasic_iostream inherits frombasic_iosinherits fromios_base inherits frombasic_istream

Summary

Reads and writes to an array in memory.

Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <strstream> 
class strstream
: public basic_iostream<char>

Description

The class strstream reads and writes to an array in memory. It uses a private strstreambuf object to control the associated array. It inherits from basic_iostream<char> and therefore can use all the formatted and unformatted output and input functions.

This is a deprecated feature and might not be available in future versions.

Interface

Types

char_type
int_type
off_type
pos_type
traits

Constructors

strstream();
strstream(char* s, int n, ios_base::openmode
          mode = ios_base::out | ios_base::in); 

Destructors

virtual ~strstream();

Member Functions

void 
freeze(int freezefl = 1); 
int 
pcount() const; 
strstreambuf* 
rdbuf() const; 
char* 
str();

Examples

See Also

char_traits(3C++), ios_base(3C++), basic_ios(3C++), strstreambuf(3C++), istrstream(3C++), ostrstream(3c++)

Working Paper for Draft Proposed International Standard for Information Systems--Programming Language C++, Annex D Compatibility features Section D.6.4

Standards Conformance

ANSI X3J16/ISO WG21 Joint C++ Committee



Previous fileTop of documentContentsIndexNext file
©Copyright 1998, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.
OEM Release, June 1998