Compartilhar via


basic_stringstream Class

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

For a list of all members of this type, see basic_stringstream Members.

template <
   class Elem, 
   class Tr = char_traits<Elem>, 
   class Alloc = allocator<Elem> 
>
   class basic_stringstream : public basic_iostream<Elem, Tr>

Parameters

  • 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.

Remarks

The template class describes an object that controls insertion and extraction of elements and encoded objects using 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>.

Requirements

Header: <sstream>

Namespace: std

See Also

Reference

Thread Safety in the Standard C++ Library

iostream Programming

iostreams Conventions

Other Resources

basic_stringstream Members

<sstream> Members