BloombergLP::bslstl::Variant_TypeToIndex<t_TYPE, bsl::variant<t_HEAD, t_TAIL...>>

Synopsis

Declared in <bslstl_variant.h>

template<
    class t_TYPE,
    class t_HEAD,
    class... t_TAIL>
struct Variant_TypeToIndex<t_TYPE, bsl::variant<t_HEAD, t_TAIL...>>
    : Variant_TypeToIndexImpl<0, t_TYPE, t_HEAD, t_TAIL...>

Base Classes

NameDescription
Variant_TypeToIndexImpl<0, t_TYPE, t_HEAD, t_TAIL...>This component-private metafunction provides implementation for Variant_TypeToIndex. It evaluates to t_INDEX + i where i is the zero-based index of (template parameter) t_TYPE in (template parameters) t_HEAD, t_TAIL..., or bsl::variant_npos if t_TYPE is not found.