Template Struct IndexOf< I, T, U, Ts… >¶
Defined in File index_of_impl_.hpp
Struct Documentation¶
-
template<int
I
, typenameT
, typenameU
, typename ...Ts
>
structripple::detail
::
IndexOf
<I, T, U, Ts...>¶ Decalration of a class to determine the index of the type T in the Ts pack.
Specialization for the general case.
- Template Parameters
I
: The current index of the search.T
: The type to find.U
: The type to compare against T.Ts
: The rest of the types to search through.
Public Static Attributes
-
constexpr auto value = std::is_same_v<T, U> ? I : IndexOf<I + 1, T, Ts...>::value
Returns the value I if T and U match, otherwise continues the search.