BloombergLP::bdlb::Variant10::Variant10

Create a variant holding value using basicAllocator.

Synopsis

Declared in <bdlb_variant.h>

template<class TYPE>
Variant10(
    TYPE const& value,
    bslma::Allocator* basicAllocator);

Description

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.

Parameters

NameDescription
valuevalue assigned to or stored in this variant
basicAllocatorallocator used to supply memory