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

This component&hyphen;private class is a visitor that is used to implement the move assignment operator for `bsl&colon;&colon;variant`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;VARIANT&gt;
class Variant&lowbar;MoveAssignVisitor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_MoveAssignVisitor/2constructor.adoc[`Variant&lowbar;MoveAssignVisitor`]         [.small]#[constructor]#
| Create a `Variant&lowbar;MoveAssignVisitor` object that, when invoked, will move&hyphen;assign to the active alternative of the specified `variant`&period;
| xref:BloombergLP/bslstl/Variant_MoveAssignVisitor/operator_call.adoc[`operator()`] 
| 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;
|===



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