bsl::basic_syncbuf::swap

Exchange the value of this object with other.

Synopsis

Declared in <bslstl_syncbuf.h>

void
swap(basic_syncbuf& other);

Description

Efficiently exchange the value of this object with the value of the specified other object. The behavior is undefined unless either *this and other allocators compare equal or propagate_on_container_swap is true.

Parameters

NameDescription
otherobject with which to exchange values