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.
other
*this
propagate_on_container_swap
true
Declared in <bslstl_syncbuf.h>
<bslstl_syncbuf.h>
void swap(basic_syncbuf& other);