Swap the values of the specified a and b objects.
Declared in <bdlb_variant.h>
template<class TYPES>
void
swap(
VariantImp<TYPES>& a,
VariantImp<TYPES>& b);
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.
| Name | Description |
|---|---|
| a | first object to swap |
| b | second object to swap |