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

This component&hyphen;private class is a visitor that is used to implement the copy 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;CopyAssignVisitor;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/Variant_CopyAssignVisitor/2constructor.adoc[`Variant&lowbar;CopyAssignVisitor`]         [.small]#[constructor]#
| Create a `Variant&lowbar;CopyAssignVisitor` object that, when invoked, will copy&hyphen;assign to the active alternative of the specified `variant`&period;
| xref:BloombergLP/bslstl/Variant_CopyAssignVisitor/operator_call.adoc[`operator()`] 
| Copy&hyphen;assign to the active alternative of `&ast;d&lowbar;variant&lowbar;p` from `value`&period;
|===



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