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>

template<class TYPES>
void
swap(
    VariantImp<TYPES>& a,
    VariantImp<TYPES>& b);

Created with MrDocs