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

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

Functions

template<kumi::str L, kumi::concepts::product_type T>
requires (kumi::concepts::queryable_by_label<kumi::label_t<L>, T>)
consteval auto kumi::get_index_of_label ()

Detailed Description

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

Function Documentation

◆ get_index_of_label()

auto kumi::get_index_of_label ( )
inlineconsteval
Note
This function does not participate in overload resolution if the product type has several instances of the same identifier or has no identifier at all.
Returns
the index of the element whose identifier matches Id in the product type if it exists