Previous fileTop of DocumentContentsIndex pageNext file
Apache C++ Standard Library Reference Guide

strstream

Library:  Input/output


basic_ostream strstream basic_iostream basic_ios ios_base basic_istream

Local Index

Members

Summary

Class that reads and writes to an array in memory

Synopsis

#include <strstream> 

namespace std {
  class strstream;
}

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 and therefore can use all the formatted and unformatted output and input functions.


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

Interface

Member Types

char_type
int_type
off_type
pos_type
traits_type

Constructors

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

Destructors

virtual ~strstream();

Member Functions

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

Example

See Also

char_traits, ios_base, basic_ios, strstreambuf, istrstream, ostrstream

Standards Conformance

Deprecated. See ISO/IEC 14882:1998 -- International Standard for Information Systems --Programming Language C++, Annex D Compatibility features Section D.7.4



Previous fileTop of DocumentContentsIndex pageNext file