std::basic_ofstream<CharT,Traits>::operator=
来自cppreference.com
< cpp | io | basic ofstream
输入/输出库
std::basic_ofstream
成员函数 | ||||
basic_ofstream::operator=
(C++11)
|
||||
(C++11)
|
||||
文件操作 | ||||
非成员函数 | ||||
(C++11)
|
basic_ofstream&
operator=(
basic_ofstream&&
other );
|
(C++11 起) | |
移动赋值文件流 other
给 *this
,等效地移动赋值 std::basic_ostream
基类和关联的 std::basic_filebuf
。
将 other
置为无关联文件。注意基类移动赋值交换 *this 与
other
间的所有流状态变量(除了 rdbuf )。
参数
other | - | 要移动的文件流。 |
返回值
*this
示例
本节未完成 原因:暂无示例 |
参阅
(C++11)
|
交换两个文件流 (公开成员函数) |
(C++11)
|
赋值 basic_filebuf 对象 ( std::basic_filebuf<CharT,Traits>
的公开成员函数) |
(C++11)
|
从另一 basic_ostream 移动赋值 (受保护成员函数) |