Rogue Wave banner
Previous fileTop of documentContentsIndexNext file

basic_istringstream


basic_istringstreaminherits frombasic_istreaminherits frombasic_iosinherits fromios_base

Summary

Supports reading objects of class basic_string<charT,traits,Allocator> from an array in memory.

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

Synopsis

#include <sstream> 
template<class charT, class traits = char_traits<charT>,
         class Allocator = allocator<charT> >
class basic_istringstream
: public basic_istream<charT, traits>

Description

The template class basic_istringstream<charT,traits,Allocator> reads from an array in memory. It supports reading objects of class basic_string<charT,traits,Allocator>. It uses a basic_stringbuf object to control the associated storage. It inherits from basic_istream and therefore can use all the formatted and unformatted input functions.

Interface

Types

char_type
int_type
ios_type
istringstream
off_type
pos_type
sb_type
string_type
traits_type
wistringstream

Constructors

explicit basic_istringstream(ios_base::openmode which =
                             ios_base::in); 
explicit basic_istringstream(const string_type& str,
                             ios_base::openmode which =
                             ios_base::in); 

Destructors

virtual ~basic_istringstream();

Member Functions

basic_stringbuf<charT,traits,Allocator>* 
rdbuf() const; 
string_type 
str() const; 
void 
str(const string_type& str); 

Example

See Also

char_traits(3C++), ios_base(3C++), basic_ios(3C++), basic_stringbuf(3C++), basic_string(3C++), basic_ostringstream(3C++), basic_stringstream(3C++)

Working Paper for Draft Proposed International Standard for Information Systems--Programming Language C++, Section 27.7.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