Namespaces
Variants

std:: swap (std::basic_syncbuf)

From cppreference.net
template < class CharT, class Traits, class Allocator >

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

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

std::basic_syncbuf 重载 std::swap 算法。将 lhs 的状态与 rhs 的状态进行交换。实际调用 lhs. swap ( rhs )

目录

参数

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

返回值

(无)

示例

参见

交换两个 basic_syncbuf 对象
(公开成员函数)
交换两个对象的值
(函数模板)