BloombergLP::bslstl::Variant_SwapVisitor

This component-private class is a visitor that is used to implement bsl::variant::swap.

Synopsis

Declared in <bslstl_variant.h>

template<class t_VARIANT>
class Variant_SwapVisitor;

Member Functions

NameDescription
Variant_SwapVisitor [constructor]Create a Variant_SwapVisitor object that, when invoked, will swap the visited alternative with the active alternative of the specified variant.
operator() Swap the alternative at index t_INDEX in *d_variant_p with the specified value (i.e. the alternative that is being visited).