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