std::basic_iostream<CharT,Traits>::operator=
From cppreference.com
< cpp | io | basic iostream
| 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 のムーブ代入演算子によって呼び出されます。これらの演算子は、関連付けられたストリームバッファを適切にムーブ代入する方法を知っています。
[編集] パラメータ
| その他 | - | 状態を代入する別のストリーム |
[編集] 戻り値
*this
[編集] 関連項目
| オブジェクトを構築する (public member function) |