[#BloombergLP-bdlb-VariantImp-2constructor-08a4] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp.adoc[VariantImp]::VariantImp :relfileprefix: ../../../ :mrdocs: Create a variant object having the type and value of the specified `original` object that uses the specified `basicAllocator` to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The contents of `original` are moved to the newly‐created object with `original` left in a valid but unspecified state. == Synopsis Declared in `<bdlb_variant.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- VariantImp( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<VariantImp>] original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#