Standard C++ Library Reference ISO/IEC (VERSION3)

basic_istringstream
template <class Elem,
class Tr = char_traits<Elem>,
class Alloc = allocator<Elem> >
class basic_istringstream
: public basic_istream<Elem, Tr> {
public:
typedef Alloc allocator_type;
explicit basic_istringstream(
ios_base::openmode mode = ios_base::in);
explicit basic_istringstream(
const basic_string<Elem, Tr, Alloc>& str,
ios_base::openmode mode = ios_base::in);
basic_stringbuf<Elem, Tr, Alloc> *rdbuf() const;
basic_string<Elem, Tr, Alloc> str();
void str(const basic_string<Elem, Tr, Alloc>& newstr);
};
The template class describes an object that controls extraction of elements and encoded objects
from a stream buffer of class basic_stringbuf<Elem, Tr, Alloc>, with elements of
type Elem, whose character traits are determined by the class Tr, and whose elements are
allocated by an allocator of class Alloc. The object stores an object of class
basic_stringbuf<Elem, Tr, Alloc>.
basic_istringstream::allocator_type
typedef Alloc allocator_type;
The type is a synonym for the template parameter Alloc.
basic_istringstream::basic_istringstream
explicit basic_istringstream(
ios_base::openmode mode = ios_base::in);
explicit basic_istringstream(
const basic_string<Elem, Tr, Alloc>& str,
ios_base::openmode mode = ios_base::in);
The first constructor initializes the base class by calling basic_istream(sb), where sb is
the stored object of class basic_stringbuf<Elem, Tr, Alloc>. It also initializes sb
by calling basic_stringbuf<Elem, Tr, Alloc>(mode | ios_base::in).
The second constructor initializes the base class by calling basic_istream(sb). It also