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

istrstream

Library:  Input/output


istrstream basic_istream basic_ios ios_base

Local Index

Members

Summary

Class that reads characters from an array in memory

Synopsis

#include <strstream>

namespace std {
  class istrstream;
}

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

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, ios_base, basic_ios, strstreambuf, ostrstream, strstream

Standards Conformance

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



Previous fileTop of DocumentContentsIndex pageNext file