Namespaces
Variants
Actions

std::common_comparison_category

From cppreference.com
< cpp‎ | utility
 
 
Utilities library
General utilities
Relational operators (deprecated in C++20)
 
Defined in header <compare>
template< class... Ts >

struct common_comparison_category
{
    using type = /* see below */ ;

};
(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: