[#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. == Synopsis Declared in `<bslstl_stringbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/StringBufContainer.adoc[StringBufContainer]& other); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#