受保護的成員函式
<ostream> <iostream>

std::basic_ostream::operator=

複製 (1)
basic_ostream& operator= (const basic_ostream&) = delete;
移動 (2)
basic_ostream& operator= (basic_ostream&& rhs);
移動賦值
交換 rhs*this 的所有內部成員,除了指向關聯的流緩衝區的指標:在呼叫之前,rdbuf 在兩個物件中都應返回相同的值。

此行為與呼叫成員函式 basic_ostream::swap 相同。

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

引數

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

返回值

*this

資料競爭

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

異常安全

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

另見