KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches
kumi::get_index_of_type

Helper to retrieve the index of a type in a product type by its type. More...

Functions

template<typename U, kumi::concepts::product_type T>
requires (kumi::concepts::queryable_by_type<U, T>)
consteval auto kumi::get_index_of_type ()

Detailed Description

Helper to retrieve the index of a type in a product type by its type.

Function Documentation

◆ get_index_of_type()

template<typename U, kumi::concepts::product_type T>
requires (kumi::concepts::queryable_by_type<U, T>)
auto kumi::get_index_of_type ( )
inlineconsteval
Note
This function does not participate in overload resolution if the product type has several instances of the same type or if it is empty.
Returns
the index of the element of type U in the product type if it exists