std::basic_iostream<CharT,Traits>::operator=
提供: cppreference.com
<tbody>
</tbody>
basic_iostream& operator=( const basic_iostream& other ) = delete; |
(1) | |
protected: basic_iostream& operator=( basic_iostream&& other ); |
(2) | (C++11以上) |
別のストリームオブジェクトを代入します。
1) コピー代入はできません。
2) 別のストリームオブジェクトをムーブ代入します。 実質的に
swap(rhs) を呼びます。 このムーブ代入演算子は protected です。 紐付けられているストリームバッファを正しくムーブ代入する方法を知っている派生ストリームクラス std::basic_stringstream および std::basic_fstream によって呼ばれます。引数
| other | - | 状態を代入する別のストリーム |
戻り値
*this。
引数
| オブジェクトを構築します (パブリックメンバ関数) |