Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

istrstream


istrstreaminherits frombasic_istreaminherits frombasic_iosinherits fromios_base

Summary

Reads characters from an array in memory.

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

Synopsis

#include <strstream>
class istrstream 
: public basic_istream<char>

Description

The class istrstream reads characters from an array in memory. It uses a private strstreambuf object to control the associated array object. It inherits from basic_istream<char> and therefore can use all the formatted and unformatted 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

explicit istrstream(const char* s);
explicit istrstream(char* s); 
explicit istrstream(const char* s, streamsize n);
explicit istrstream(char* s, streamsize n); 

Destructors

virtual ~istrstream();

Member Functions

char* 
str();
strstreambuf* 
rdbuf() const; 

Example

See Also

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

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

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