命名空间
变体
操作

std::swap(std::basic_syncbuf)

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

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

           std::basic_syncbuf<CharT, Traits, Allocator>& rhs );
(since C++20)

std::basic_syncbuf 重载 std::swap 算法。 交换 lhsrhs 的状态。 有效地调用 lhs.swap(rhs)

目录

[编辑] 参数

lhs, rhs - std::basic_syncbuf 对象,其状态将被交换

[编辑] 返回值

(无)

[编辑] 示例

[编辑] 参见

交换两个 basic_syncbuf 对象
(公共成员函数) [编辑]
交换两个对象的值
(函数模板) [编辑]