[#BloombergLP-bdlb-Variant7-2constructor-01]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/Variant7.adoc[Variant7]::Variant7
:relfileprefix: ../../../
:mrdocs:

Create a variant object having the type and value of the specified `original` object that uses the specified `basicAllocator` to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The contents of `original` are moved to the newly&hyphen;created object with `original` left in a valid but unspecified state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Variant7(
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;Variant7&gt;] original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----


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