[#BloombergLP-bslstl-Variant_CopyConstructVisitor] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::Variant_CopyConstructVisitor :relfileprefix: ../../ :mrdocs: This component‐private class is a visitor that is used to implement the copy constructor for `bsl::variant`. == Synopsis Declared in `<bslstl_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_VARIANT_BASE> class Variant_CopyConstructVisitor; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslstl/Variant_CopyConstructVisitor/2constructor.adoc[`Variant_CopyConstructVisitor`] [.small]#[constructor]# | Create a `Variant_CopyConstructVisitor` object that, when invoked, will copy‐construct an alternative in the specified `variant`. | xref:BloombergLP/bslstl/Variant_CopyConstructVisitor/operator_call.adoc[`operator()`] | Copy‐construct the alternative at index (template parameter) `t_INDEX` from the specified `other` (i.e. the alternative that is being visited). Note that the allocator specified on construction of `*d_variant_p` will be used. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#