名前空間
変種
操作

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

From cppreference.com
< cpp‎ | io‎ | basic ifstream
 
 
 
 
basic_ifstream& operator=( basic_ifstream&& other );
(C++11以降)

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

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

目次

[編集] パラメータ

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

[編集] 戻り値

*this

[編集]

[編集] 関連項目

(C++11)
2つのファイルストリームをスワップする
(public member function) [編集]
(C++11)
basic_filebuf オブジェクトを代入します
(std::basic_filebuf<CharT,Traits> の public メンバ関数) [編集]
(C++11)
別の basic_istream からムーブ代入する
(protected member function) [編集]
English 日本語 中文(简体) 中文(繁體)