Standard C++ Library Reference ISO/IEC (VERSION3)
basic_ostringstream::allocator_type
typedef Alloc allocator_type;
The type is a synonym for the template parameter Alloc.
basic_ostringstream::basic_ostringstream
explicit basic_ostringstream(
ios_base::openmode mode = ios_base::out);
explicit basic_ostringstream(
const basic_string<Elem, Tr, Alloc>& str,
ios_base::openmode mode = ios_base::out);
The first constructor initializes the base class by calling basic_ostream(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::out).
The second constructor initializes the base class by calling basic_ostream(sb). It also
initializes sb by calling basic_stringbuf<Elem, Tr, Alloc>(str, mode |
ios_base::out).
basic_ostringstream::rdbuf
basic_stringbuf<Elem, Tr, Alloc> *rdbuf() const
The member function returns the address of the stored stream buffer, of type pointer to
basic_stringbuf<Elem, Tr, Alloc>.
basic_ostringstream::str
basic_string<Elem, Tr, Alloc> str() const;
void str(const basic_string<Elem, Tr, Alloc>& newstr);
The first member function returns rdbuf()-> str(). The second member function calls
rdbuf()-> str(newstr).
basic_stringstream
template <class Elem,
class Tr = char_traits<Elem>,
class Alloc = allocator<Elem> >
class basic_stringstream
: public basic_iostream<Elem, Tr> {
public: