std::basic_ofstream<CharT,Traits>::swap
来自cppreference.com
< cpp | io | basic ofstream
输入/输出库
std::basic_ofstream
成员函数 | ||||
(C++11)
|
||||
basic_ofstream::swap
(C++11)
|
||||
文件操作 | ||||
非成员函数 | ||||
(C++11)
|
void
swap(
basic_ofstream&
other );
|
(C++11 起) | |
交换流与 other
的状态。
通过调用 basic_ostream<CharT, Traits>::swap(other) 和 rdbuf()->swap(other.rdbuf()) 进行。
参数
other | - | 要交换状态的流 |
返回值
(无)
异常
可能会抛出由实现定义的异常。
示例
本节未完成 原因:暂无示例 |
参阅
(C++11)
|
移动文件流 (公开成员函数) |
(C++11)
|
交换两个 basic_filebuf 对象 ( std::basic_filebuf<CharT,Traits>
的公开成员函数) |