[#BloombergLP-bdlbb-swap-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlbb.adoc[bdlbb]::swap :relfileprefix: ../../ :mrdocs: Efficiently exchange the values of the specified `a` and `b` objects. == Synopsis Declared in `<bdlbb_blob.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap( xref:BloombergLP/bdlbb/Blob.adoc[Blob]& a, xref:BloombergLP/bdlbb/Blob.adoc[Blob]& b); ---- == Description This method provides the no‐throw exception‐safety guarantee if both objects were created with the same allocator. == Parameters [cols="1,4"] |=== | Name| Description | *a* | first blob to exchange | *b* | second blob to exchange |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#