std::basic_ifstream<CharT,Traits>::operator=
提供: cppreference.com
< cpp | io | basic ifstream
basic_ifstream& operator=( basic_ifstream&& other ); |
(C++11以上) | |
ファイルストリーム other
を *this
にムーブ代入します。 実質的に std::basic_istream 基底クラスおよび紐付けられている std::basic_filebuf を両方ともムーブ代入します。
other
はファイルと紐付けられなくなります。 基底クラスのムーブ代入は *this と other
の間で (rdbuf を除いて) すべてのストリームの状態変数を swap することに注意してください。
目次 |
[編集] 引数
other | - | ムーブするファイルストリーム |
[編集] 戻り値
*this。
[編集] 例
This section is incomplete Reason: no example |
[編集] 関連項目
(C++11) |
2つのファイルストリームを入れ替えます (パブリックメンバ関数) |
(C++11) |
basic_filebuf オブジェクトを代入します ( std::basic_filebuf<CharT,Traits> のパブリックメンバ関数)
|
(C++11) |
別の basic_istream からムーブ代入します (プロテクテッドメンバ関数) |