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