[#bsl-StringBufContainer-swap]
= xref:bsl.adoc[bsl]::xref:bsl/StringBufContainer.adoc[StringBufContainer]::swap
:relfileprefix: ../../
:mrdocs:

Efficiently exchange the value of this object with the value of the specified `other` object&period;

== Synopsis

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

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


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