Create a Variant_Base object holding the alternative with index (template parameter) t_INDEX, direct‐initialized from the specified args.

Synopsis

Declared in <bslstl_variant.h>

template<
    size_t t_INDEX,
    class... t_ARGS>
explicit
Variant_Base(
    bsl::in_place_index_t<t_INDEX> inPlaceIndex,
    t_ARGS&&... args);

Description

Create a Variant_Base object holding the alternative with index (template parameter) t_INDEX, direct‐initialized from the specified args. If this Variant_Base is allocator‐aware, the currently installed default allocator is used to supply memory.

Parameters

Name

Description

inPlaceIndex

tag selecting the in‐place‐index constructor

args

arguments forwarded to the alternative's constructor

Created with MrDocs