std::swap(std::basic_filebuf)
来自cppreference.com
< cpp | io | basic filebuf
输入/输出库
std::basic_filebuf
公开成员函数 | ||||
(C++11)
|
||||
(C++11)
|
||||
受保护成员函数 | ||||
非成员函数 | ||||
swap(std::basic_filebuf)
(C++11)
|
template<
class
CharT, class
Traits >
void
swap(
std::basic_filebuf<CharT,Traits>&
lhs, |
(C++11 起) | |
为 std::basic_filebuf
特化 std::swap 算法。交换
lhs
与 rhs
的内部状态。等效地调用 lhs.swap(rhs) 。
参数
lhs, rhs | - | 要交换状态的 std::basic_filebuf 对象 |
返回值
(无)
示例
本节未完成 原因:暂无示例 |
参阅
(C++11)
|
交换两个 basic_filebuf 对象 (公开成员函数) |
交换两个对象的值 (函数模板) |