[#BloombergLP-bdlb-swap-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::swap :relfileprefix: ../../ :mrdocs: Swap the values of the specified `a` and `b` objects. This method provides the no‐throw guarantee if the `TYPE` template parameter has a no‐throw `swap` and the two variant objects being swapped has the same type; otherwise this method provides the basic guarantee. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPES> void swap( xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp<TYPES>]& a, xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp<TYPES>]& b); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#