17 Language support library [support]

17.11 Comparisons [cmp]

17.11.3 Class template common_Β­comparison_Β­category [cmp.common]

The type common_Β­comparison_Β­category provides an alias for the strongest comparison category to which all of the template arguments can be converted.
Note
:
A comparison category type is stronger than another if they are distinct types and an instance of the former can be converted to an instance of the latter.
β€” end note
 ]
template<class... Ts> struct common_comparison_category { using type = see below; };
Remarks: The member typedef-name type denotes the common comparison type ([class.spaceship]) of Ts..., the expanded parameter pack, or void if any element of Ts is not a comparison category type.
Note
:
This is std​::​strong_Β­ordering if the expansion is empty.
β€” end note
 ]