[#BloombergLP-bdlb-VariantImp_AllocatorBase-2constructor-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp_AllocatorBase.adoc[VariantImp&lowbar;AllocatorBase]::VariantImp&lowbar;AllocatorBase
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

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

Create a `VariantImp&lowbar;AllocatorBase` with the specified `type` and `basicAllocator`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-08.adoc[VariantImp&lowbar;AllocatorBase](
    int type,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----

[.small]#xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-08.adoc[_» more&period;&period;&period;_]#

Create a `VariantImp&lowbar;AllocatorBase` with the specified `type` indicating the type of the object that the variant will initially hold, and the specified `basicAllocator` to supply memory&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-0d.adoc[VariantImp&lowbar;AllocatorBase](
    int type,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator,
    xref:bsl/true_type.adoc[bsl::true&lowbar;type]);
----

[.small]#xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-0d.adoc[_» more&period;&period;&period;_]#

Create a `VariantImp&lowbar;AllocatorBase` with the specified `type` and default&hyphen;constructed `TYPE`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-01.adoc[VariantImp&lowbar;AllocatorBase](
    int type,
    TYPE const&,
    xref:bsl/false_type.adoc[bsl::false&lowbar;type]);
----

[.small]#xref:BloombergLP/bdlb/VariantImp_AllocatorBase/2constructor-01.adoc[_» more&period;&period;&period;_]#


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