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