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

◆ get_index_of_field()

template<concepts::identifier Name, 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 name.

Note
This function does not participate in overload resolution if the product type has several instances of the same name or has no name at all.
Returns
the index of the element tagged with Name in the product type if it exist