[#BloombergLP-bslstl-Variant_CopyAssignVisitor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Variant_CopyAssignVisitor :relfileprefix: ../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VARIANT> class Variant_CopyAssignVisitor; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/Variant_CopyAssignVisitor/2constructor.adoc[`Variant_CopyAssignVisitor`] [.small]#[constructor]# | Create a `Variant_CopyAssignVisitor` object that, when invoked, will copy‐assign to the active alternative of the specified `variant`. | xref:BloombergLP/bslstl/Variant_CopyAssignVisitor/operator_call.adoc[`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). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#