[#bsl-basic_syncbuf-swap-05]
= xref:bsl.adoc[bsl]::xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]::swap
:relfileprefix: ../../
:mrdocs:

Efficiently exchange the value of this object with the value of the specified `other` object&period; The behavior is undefined unless either `&ast;this` and `other` allocators compare equal or `propagate&lowbar;on&lowbar;container&lowbar;swap` is `true`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;syncbuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:bsl/basic_syncbuf.adoc[basic&lowbar;syncbuf]& other);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
