Namespaces
Variants

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

From cppreference.net

basic_ofstream & operator = ( basic_ofstream && other ) ;
(C++11以降)

ファイルストリーム other * this にムーブ代入します。これにより、 std::basic_ostream 基底クラスと関連付けられた std::basic_filebuf の両方が効果的にムーブ代入されます。

other は関連付けられたファイルを持たない状態になります。基底クラスのムーブ代入演算子は、 rdbuf を除くすべてのストリーム状態変数を * this other の間で交換することに注意してください。

目次

パラメータ

その他 - 移動するファイルストリーム

戻り値

* this

関連項目

(C++11)
2つのファイルストリームを交換する
(公開メンバ関数)
(C++11)
basic_filebuf オブジェクトを代入する
( std::basic_filebuf<CharT,Traits> の公開メンバ関数)
(C++11)
別の basic_ostream からムーブ代入する
(保護メンバ関数)