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

Visitor that operates on the currently held alternative&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct Variant&lowbar;MoveAssignVisitor;
----

== Description

This visitor, when invoked as a non&hyphen;modifiable function object on an instance of some template parameter `TYPE`, will move&hyphen;assign that instance to the instance of the same `TYPE` held in a buffer specified at construction of this visitor&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/Variant_MoveAssignVisitor/2constructor.adoc[`Variant&lowbar;MoveAssignVisitor`]         [.small]#[constructor]#
| Create a move&hyphen;assign visitor targeting the specified `buffer`&period;
| xref:BloombergLP/bdlb/Variant_MoveAssignVisitor/operator_call.adoc[`operator()`] 
| Move&hyphen;assign a `TYPE` value into the buffer supplied at construction&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlb/Variant_MoveAssignVisitor/d_buffer_p.adoc[`d&lowbar;buffer&lowbar;p`] 
| Destination buffer for move assignment&period;
|===



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