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

Synopsis

Declared in <bslstl_variant.h>

template<class t_VARIANT>
class Variant_MoveAssignVisitor;

Member Functions

Name

Description

Variant_MoveAssignVisitor [constructor]

Create a Variant_MoveAssignVisitor object that, when invoked, will move‐assign to the active alternative of the specified variant.

operator()

Move‐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).

Created with MrDocs