[#BloombergLP-bdlb-VariantImp_NoAllocatorBase-2constructor-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/VariantImp_NoAllocatorBase.adoc[VariantImp_NoAllocatorBase]::VariantImp_NoAllocatorBase :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdlb_variant.h>` Create a `VariantImp_NoAllocatorBase` with the specified `type` (allocator argument is ignored). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/VariantImp_NoAllocatorBase/2constructor-07.adoc[VariantImp_NoAllocatorBase]( int type, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator); ---- [.small]#xref:BloombergLP/bdlb/VariantImp_NoAllocatorBase/2constructor-07.adoc[_» more..._]# Create a `VariantImp_NoAllocatorBase` with the specified `type` indicating the type of the object that the variant will initially hold. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdlb/VariantImp_NoAllocatorBase/2constructor-0d.adoc[VariantImp_NoAllocatorBase]( int type, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* allocator, xref:bsl/true_type.adoc[bsl::true_type] tag); ---- [.small]#xref:BloombergLP/bdlb/VariantImp_NoAllocatorBase/2constructor-0d.adoc[_» more..._]# Create a non‐allocator base holding a copy of `value`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> xref:BloombergLP/bdlb/VariantImp_NoAllocatorBase/2constructor-05.adoc[VariantImp_NoAllocatorBase]( int type, TYPE const& value, xref:bsl/false_type.adoc[bsl::false_type] tag); ---- [.small]#xref:BloombergLP/bdlb/VariantImp_NoAllocatorBase/2constructor-05.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *type* | type index of the initially held alternative | *allocator* | allocator used to supply memory | *tag* | unused overload‐resolution tag | *value* | value assigned to or stored in this variant |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#