BloombergLP::bdlb::VariantImp::swap

Swap the value of this object with other.

Synopsis

Declared in <bdlb_variant.h>

void
swap(VariantImp& other);

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 have the same type; otherwise this method provides the basic guarantee.

Parameters

NameDescription
otherobject with which to swap