BloombergLP::bslstl::Variant_Union<t_HEAD, t_TAIL...>::Variant_Union

Constructors

Synopses

Declared in <bslstl_variant.h>

Create a Variant_Union object having no active alternative.

Variant_Union() = default;
» more...

Create a Variant_Union object holding an object of type t_HEAD direct-initialized from the specified args.

template<class... t_ARGS>
Variant_Union(
    bsl::in_place_index_t<0> inPlaceIndex,
    t_ARGS&&... args);
» more...

Create a Variant_Union object holding the alternative at index (template parameter) t_INDEX.

template<
    size_t t_INDEX,
    class... t_ARGS>
Variant_Union(
    bsl::in_place_index_t<t_INDEX> inPlaceIndex,
    t_ARGS&&... args);
» more...

Parameters

NameDescription
inPlaceIndextag selecting the 0th alternative
argsarguments forwarded to the alternative's constructor