Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
basic_ostringstream::basic_ostringstream
Collapse the table of content
Expand the table of content

basic_ostringstream::basic_ostringstream 

Constructs an object of type 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
);

Parameters

_Mode

One of the enumerations in ios_base::openmode.

_Str

An object of type basic_string.

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

Header: <sstream>

Community Additions

ADD
Show:
© 2015 Microsoft