template <class E,
class T = char_traits<E>,
class A = allocator<E> >
class basic_ostringstream : public basic_ostream<E, T> {
public:
explicit basic_ostringstream(ios_base::openmode mode = ios_base::out);
explicit basic_ostringstream(const basic_string<E, T, A>& x,
ios_base::openmode mode = ios_base::out);
basic_stringbuf<E, T, A> *rdbuf() const;
basic_string<E, T, A>& str();
void str(const basic_string<E, T, A>& x);
};
The template class describes an object that controls insertion of elements and encoded objects into a stream buffer of
class basic_stringbuf
<E, T, A>
, with elements of type E
, whose character traits are determined by the class T
,
and whose elements are allocated by an allocator of class A
. The object stores an object of class
basic_stringbuf<E, T, A>
.