std::common_comparison_category
From cppreference.com
| Defined in header <compare>
|
||
| template< class... Ts > struct common_comparison_category |
(since C++20) | |
The class template std::common_comparison_category provides an alias (as the member typedef type) for the strongest comparison category to which all of the template arguments Ts... can be converted.
In detail, the common comparison type of a list of n types T0...Tn-1 is defined as follows:
- If any
Ti is not a comparison category type (std::partial_ordering, std::weak_ordering, std::strong_ordering),Uis void. - Otherwise, if at least one
Ti is std::partial_ordering,Uis