[#BloombergLP-bslstl-Variant_CopyConstructVisitor-operator_call]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/Variant_CopyConstructVisitor.adoc[Variant&lowbar;CopyConstructVisitor]::operator()
:relfileprefix: ../../../
:mrdocs:

Copy&hyphen;construct the alternative at index (template parameter) `t&lowbar;INDEX` from the specified `other` (i&period;e&period; the alternative that is being visited)&period; Note that the allocator specified on construction of `&ast;d&lowbar;variant&lowbar;p` will be used&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;variant&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    size&lowbar;t t&lowbar;INDEX,
    class t&lowbar;TYPE&gt;
void
operator()(
    bsl::in&lowbar;place&lowbar;index&lowbar;t&lt;t&lowbar;INDEX&gt;,
    t&lowbar;TYPE const& other) const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
