KUMI v3.1.0
Exquisite Epidote
Loading...
Searching...
No Matches

◆ get_index_of_field()

template<concepts::identifier Id, concepts::product_type T>
auto kumi::get_index_of_field ( )
inlineconsteval

Helper to retrive the index of a type in a product type by it s identifier.

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 exist