Namespaces
Variants

std::basic_iostream<CharT,Traits>:: operator=

From cppreference.net
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

関連項目

オブジェクトを構築する
(public member function)