KUMI v5.0.0
Gorgeous Garnet
Loading...
Searching...
No Matches

◆ 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

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

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