[#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&period;

== Synopsis

Declared in `&lt;bdlbb&lowbar;blob&period;h&gt;`

[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&hyphen;throw exception&hyphen;safety guarantee if both objects were created with the same allocator&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first blob to exchange
| *b*
| second blob to exchange
|===


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