Create an allocator-aware base with the given type index.
Declared in <bdlb_variant.h>
VariantImp_AllocatorBase(
int type,
bslma::Allocator* basicAllocator,
bsl::true_type tag);
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.
| Name | Description |
|---|---|
| type | type index of the initially held alternative |
| basicAllocator | allocator used to supply memory |
| tag | unused overload-resolution tag |