Create a variant holding value using basicAllocator.
Declared in <bdlb_variant.h>
template<class TYPE>
VariantImp(
TYPE const& value,
bslma::Allocator* basicAllocator);
If basicAllocator is 0, the currently installed default allocator is used. TYPE must be the same as one of the types that this variant can hold.
| Name | Description |
|---|---|
| value | value assigned to or stored in this variant |
| basicAllocator | allocator used to supply memory |