explicit basic_iostream( std::basic_streambuf<CharT,Traits>* sb );
basic_iostream( const basic_iostream& other ) = delete;
protected: basic_iostream( basic_iostream&& other );
Constructs new stream object.
sb. The base classes are initialized as
basic_ostream<CharT,Traits>(sb). After the call
rdbuf() == sband
gcount() == 0.
basic_istream<CharT,Traits>(std::move(rhs));, which in turn move-constructs and initializes the virtual base
std::basic_ios. The initialization of the other base,
basic_ostream, is implementation-defined (e.g., a protected default constructor may be added to
std::basic_ostream, which does nothing) because move-construction cannot use
rhstwice. This move constructor is protected: it is called by the move constructors of the derived stream classes
std::basic_stringstreambefore they move-construct and associate the stream buffer.
|sb||-||streambuf to initialize with|
|other||-||another stream to initialize with|
| move-assigns another
(protected member function)
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.