[#BloombergLP-bdlb-VariantImp_AllocatorBase-2constructor-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp_AllocatorBase.adoc[VariantImp_AllocatorBase]::VariantImp_AllocatorBase :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlb_variant.h>` Create a `VariantImp_AllocatorBase` with the specified `type` and `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-08.adoc[VariantImp_AllocatorBase]( int type, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-08.adoc[_» more..._]# Create a `VariantImp_AllocatorBase` with the specified `type` indicating the type of the object that the variant will initially hold, and the specified `basicAllocator` to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-0d.adoc[VariantImp_AllocatorBase]( int type, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator, xref:bsl/true_type.adoc[bsl::true_type]); ---- [.small]#xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-0d.adoc[_» more..._]# Create a `VariantImp_AllocatorBase` with the specified `type` and default‐constructed `TYPE`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-01.adoc[VariantImp_AllocatorBase]( int type, TYPE const&, xref:bsl/false_type.adoc[bsl::false_type]); ---- [.small]#xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#