命名空间
变体
操作

std::swap(std::basic_filebuf)

来自 cppreference.cn
< cpp‎ | io‎ | basic filebuf
 
 
 
 
template< class CharT, class Traits >

void swap( std::basic_filebuf<CharT,Traits>& lhs,

           std::basic_filebuf<CharT,Traits>& rhs );
(since C++11)

std::basic_filebuf 重载 std::swap 算法。交换 lhsrhs 的状态。实际等效于调用 lhs.swap(rhs)

内容

[编辑] 参数

lhs, rhs - std::basic_filebuf 对象,要交换状态

[编辑] 返回值

(无)

[编辑] 示例

[编辑] 参见

(C++11)
swap 交换两个 basic_filebuf 对象
(公有成员函数) [编辑]
交换两个对象的值
(函数模板) [编辑]