30 Input/output library [input.output]

30.8 String-based streams [string.streams]

30.8.4 Class template basic_­ostringstream [ostringstream]

30.8.4.1 basic_­ostringstream constructors [ostringstream.cons]

explicit basic_ostringstream( ios_base::openmode which = ios_base::out);

Effects: Constructs an object of class basic_­ostringstream, initializing the base class with basic_­ostream(​&sb) 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(&sb) 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(&sb) is called to install the contained basic_­stringbuf.