Export (0) Print
Expand All

basic_istringstream Class

Describes an object that controls extraction of elements and encoded objects from a stream buffer of class basic_stringbuf<Elem, Tr, Alloc>.

template < 
   class Elem,  
   class Tr = char_traits<Elem>,  
   class Alloc = allocator<Elem>  
> 
   class basic_istringstream : public basic_istream<Elem, Tr>

Alloc

The allocator class.

Elem

The type of the basic element of the string.

Tr

The character traits specialized on the basic element of the string.

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

Constructs an object of type basic_istringstream.

allocator_type

The type is a synonym for the template parameter Alloc.

rdbuf

Returns the address of the stored stream buffer of type pointer to basic_stringbuf<Elem, Tr, Alloc>.

str

Sets or gets the text in a string buffer without changing the write position.

swap

Exchanges the values in this basic_istringstream object for those of the provided object.

operator=

Assigns the values to this basic_istringstream object from the object parameter.

Header: <sstream>

Namespace: std

Show:
© 2014 Microsoft