Helper to retrive the index of a type in a product type by it s 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 exist