std::basic_fstream<CharT,Traits>::operator=
From cppreference.com
< cpp | io | basic fstream
| basic_fstream& operator=( basic_fstream&& other ); |
(C++11以降) | |
ファイルストリームotherを*thisにムーブ代入します。これにより、std::basic_iostream基底クラスと関連付けられたstd::basic_filebufの両方が効果的にムーブ代入されます。
other は、関連付けられたファイルを持たない状態になります。基底クラスのムーブ代入では、*this と other の間で、すべてのストリーム状態変数(rdbuf を除く)が交換されることに注意してください。
目次 |
[編集] パラメータ
| その他 | - | ムーブするファイルストリーム |
[編集] 戻り値
*this
[編集] 例
| このセクションは未完成です 理由: 例がありません |
[編集] 関連項目
| (C++11) |
2つのファイルストリームをスワップする (public member function) |
| (C++11) |
basic_filebuf オブジェクトを代入します( std::basic_filebuf<CharT,Traits> の public メンバ関数) |
| (C++11) |
別のbasic_iostreamをムーブ代入します(protected member function) |