BloombergLP::bslstl::Variant_TypeToIndex

This component-private metafunction calculates the zero-based index of (template parameter) t_TYPE in the list of alternatives in (template parameter) t_VARIANT, or bsl::variant_npos if there is no such alternative. The primary template (used when t_VARIANT is not a bsl::variant) is not defined.

Synopsis

Declared in <bslstl_variant.h>

template<
    class t_TYPE,
    class t_VARIANT>
struct Variant_TypeToIndex;

Specializations

Name
Variant_TypeToIndex<t_TYPE, bsl::variant<t_HEAD, t_TAIL...>>