protected member function
<istream> <iostream>

std::basic_iostream::operator=

copy (1)
basic_iostream& operator= (const basic_iostream&) = delete;
move (2)
basic_iostream& operator= (basic_iostream&& rhs);
移動賦值
Exchanges all internal members between rhs and *this, except the pointers to the associated stream buffers: rdbuf shall return the same in both objects as before the call.

This is the same behavior as calling member basic_iostream::swap.

派生類可以呼叫此函式來實現移動語義。

引數

rhs
另一個具有相同模板引數(charTtraits)的 basic_istream 物件。

返回值

*this

資料競爭

修改兩個流物件(*thisrhs)。

異常安全

無異常保證:此成員函式從不丟擲異常。

另見