命名空间
变体
操作

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

来自 cppreference.cn
< cpp‎ | io‎ | basic ofstream
basic_ofstream& operator=( basic_ofstream&& other );
(since C++11)

移动赋值文件流 other*this,有效地移动赋值了 std::basic_ostream 基类和关联的 std::basic_filebuf

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

目录

[编辑] 参数

other - 要移动的文件流

[编辑] 返回值

*this

[编辑] 示例

[编辑] 参见

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