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

来自cppreference.com
< cpp‎ | io‎ | basic fstream

basic_fstream& operator=( basic_fstream&& other );
(C++11 起)

将文件流 other 移动赋值给 *this,相当于移动赋值 std::basic_iostream 基类和关联的 std::basic_filebuf

other 置为无关联文件。注意,基类的移动赋值会交换 *thisother 间的所有流状态变量(除了 rdbuf)。

参数

other - 要移动的文件流

返回值

*this

示例

参阅

(C++11)
交换两个文件流
(公开成员函数)
(C++11)
赋值 basic_filebuf 对象
(std::basic_filebuf<CharT,Traits> 的公开成员函数)
(C++11)
移动赋值另一 basic_iostream
(受保护成员函数)