[#BloombergLP-bdlb-VariantImp-swap]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp]::swap
:relfileprefix: ../../../
:mrdocs:

Swap the value of this object with the value of the specified `other` object&period; This method provides the no&hyphen;throw guarantee if the `TYPE` template parameter has a no&hyphen;throw `swap` and the two variant objects being swapped have the same type&semi; otherwise this method provides the basic guarantee&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;variant&period;h&gt;`

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


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