BloombergLP::bslstl::Variant_CopyAssignVisitor

This component-private class is a visitor that is used to implement the copy assignment operator for bsl::variant.

Synopsis

Declared in <bslstl_variant.h>

template<class t_VARIANT>
class Variant_CopyAssignVisitor;

Member Functions

NameDescription
Variant_CopyAssignVisitor [constructor]Create a Variant_CopyAssignVisitor object that, when invoked, will copy-assign to the active alternative of the specified variant.
operator() Copy-assign to the active alternative of *d_variant_p from the specified value (i.e. the alternative that is being visited). The behavior is undefined unless (template parameter) t_INDEX is the index of the active alternative of *d_variant_p (or, in C++03, the index of an alternative that has the same type as the active alternative).