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

Synopsis

Declared in <bdlb_variant.h>

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

Description

Create a VariantImp_NoAllocatorBase holding a copy of the specified value of the (template parameter) TYPE, with the specified type indicating the type of the object that the variant will initially hold.

Parameters

Name

Description

type

type index of the initially held alternative

value

value assigned to or stored in this variant

tag

unused overload‐resolution tag

Created with MrDocs