Constructors

Synopses

Declared in <bdlb_variant.h>

Create a VariantImp_NoAllocatorBase with the specified type (allocator argument is ignored).

Create a VariantImp_NoAllocatorBase with the specified type indicating the type of the object that the variant will initially hold.

Create a non‐allocator base holding a copy of value.

template<class TYPE>
VariantImp_NoAllocatorBase(
    int type,
    TYPE const& value,
    bsl::false_type tag);

Parameters

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

Created with MrDocs