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

Move&hyphen;assign to the active alternative of `&ast;d&lowbar;variant&lowbar;p` from `value`&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; indexTag,
    t&lowbar;TYPE& value) const;
----

== Description

Move&hyphen;assign to the active alternative of `&ast;d&lowbar;variant&lowbar;p` from the specified `value` (i&period;e&period; the alternative that is being visited)&period; The behavior is undefined unless (template parameter) `t&lowbar;INDEX` is the index of the active alternative of `&ast;d&lowbar;variant&lowbar;p` (or, in C&plus;&plus;03, the index of an alternative that has the same type as the active alternative)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *indexTag*
| tag encoding the index of the alternative being visited
| *value*
| alternative value to move&hyphen;assign from
|===


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