Template:ddcl list begin <tr class="t-dcl "><td >
<td > (1) </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl "><td >
<td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl "><td >
basic_iostream( basic_iostream&& other );
<td > (3) </td> <td > (since C++11) </td> </tr> Template:ddcl list end
Constructs new stream object.
sb. The base classes are initialized as basic_istream<CharT,Traits>(sb) and basic_ostream<CharT,Traits>(sb). After the call rdbuf() == sb and gcount() == 0.
basic_istreamas 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_fstream and std::basic_stringstream before they move-construct and associate the stream buffer.
|sb||-||streambuf to initialize with|
|other||-||another stream to initialize with|