名稱空間
變體
操作

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

來自 cppreference.com
< cpp‎ | io‎ | basic ofstream
basic_ofstream& operator=( basic_ofstream&& other );
(C++11 起)

將檔案流 other 移動賦值給 *this,有效地移動賦值 std::basic_ostream 基類和關聯的 std::basic_filebuf

other 將不再關聯檔案。注意,基類移動賦值會交換 *thisother 之間的所有流狀態變數(除了 rdbuf)。

目錄

[編輯] 引數

其他 - 要移動的檔案流

[編輯] 返回值

*this

[編輯] 示例

[編輯] 參閱

(C++11)
交換兩個檔案流
(public 成員函式) [編輯]
(C++11)
賦值一個 basic_filebuf 物件
(std::basic_filebuf<CharT,Traits> 的 public 成員函式) [編輯]
(C++11)
從另一個basic_ostream移動賦值
(protected 成員函式) [編輯]