[#bsl-StringBufContainer-swap] = xref:bsl.adoc[bsl]::xref:bsl/StringBufContainer.adoc[StringBufContainer]::swap :relfileprefix: ../../ :mrdocs: Efficiently exchange the value of this object with `other`. == Synopsis Declared in `<bslstl_stringbuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/StringBufContainer.adoc[StringBufContainer]& other); ---- == Description Efficiently exchange the value of this object with the value of the specified `other` object. == Parameters [cols="1,4"] |=== | Name| Description | *other* | object with which to exchange values |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#