BloombergLP::bslstl::Pair_IndexOfType<T2, T1, T2>

This partial specialization of Pair_IndexOfType returns the index of second element of pair.

Synopsis

Declared in <bslstl_pair.h>

template<
    class T1,
    class T2>
struct Pair_IndexOfType<T2, T1, T2>
    : bsl::integral_constant<size_t, 1U>

Base Classes

NameDescription
bsl::integral_constant<size_t, 1U>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.