28 Input/output library [input.output]

28.8 String-based streams [string.streams]

28.8.4 Class template basic_­ostringstream [ostringstream]

28.8.4.1 Constructors [ostringstream.cons]

explicit basic_ostringstream(ios_base::openmode which);
Effects: Constructs an object of class basic_­ostringstream<charT, traits>, initializing the base class with basic_­ostream<charT, traits>(addressof(sb)) ([ostream]) and initializing sb with
basic_­stringbuf<charT, traits, Allocator>(which | ios_­base::out) ([stringbuf.cons]).
explicit basic_ostringstream( const basic_string<charT, traits, Allocator>& str, ios_base::openmode which = ios_base::out);
Effects: Constructs an object of class basic_­ostringstream<charT, traits>, initializing the base class with basic_­ostream<charT, traits>(addressof(sb)) ([ostream]) and initializing sb with
basic_­stringbuf<charT, traits, Allocator>(str, which | ios_­base::out) ([stringbuf.cons]).
basic_ostringstream(basic_ostringstream&& rhs);
Effects: Move constructs from the rvalue rhs.
This is accomplished by move constructing the base class, and the contained basic_­stringbuf.
Next basic_­ostream<charT, traits>::set_­rdbuf(addressof(sb)) is called to install the contained basic_­stringbuf.