Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Standard C++ Library Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

ostrstream

Module:  Standard C++ Library   Library:  Input/output


ostrstream basic_ostream basic_ios ios_base

Local Index

Members

Summary

Writes to an array in memory

Synopsis

#include <strstream> 

namespace std {
  class ostrstream;
}

Description

The class ostrstream writes to an array in memory. It uses a private strstreambuf object to control the associated array object. It inherits from basic_ostream, and therefore can use all the formatted and unformatted output 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

ostrstream();
ostrstream(char* s, int n, ios_base::openmode
           mode = ios_base::out); 

Destructors

virtual ~ostrstream();

Member Functions

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

Example

See examples for strstream, istrstream, and strstreambuf.

See Also

char_traits, ios_base, basic_ios, strstreambuf, istrstream, strstream

Standards Conformance

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



Previous fileTop of DocumentContentsIndex pageNext file

Copyright (c) 1994-2006 Rogue Wave Software, a Quovadx Division.
Licensed under the Apache License, Version 2.0.
Contact Rogue Wave about documentation or support issues. You can also seek help from other developers through the Apache stdcxx community (see below).

For more information on the Rogue Wave Standard C++ Library under open source, see Section 1.2 of the user's guide.