BloombergLP::bslstl::Variant_TypeToIndexImpl<t_INDEX, t_TYPE, BSLSTL_VARIANT_NOT_A_TYPE>

This partial specialization is used when the list of alternatives t_HEAD, t_TAIL... is empty, i.e., t_TYPE wasn't found in the originally supplied list of alternatives.

Synopsis

Declared in <bslstl_variant.h>

template<
    size_t t_INDEX,
    class t_TYPE>
struct Variant_TypeToIndexImpl<t_INDEX, t_TYPE, BSLSTL_VARIANT_NOT_A_TYPE>
    : bsl::integral_constant<size_t, bsl::variant_npos>

Base Classes

NameDescription
bsl::integral_constant<size_t, bsl::variant_npos>Metafunction representing a compile-time constant of the specified (template parameter) t_TYPE with the specified (template parameter) t_VALUE.

Type Aliases

NameDescription
type Alias for this integral_constant specialization.

Member Functions

NameDescription
operator() Return a copy of the template argument t_VALUE.