A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.cppreference.com/w/cpp/ranges/../../cpp/utility/compare/common_comparison_category.html below:

std::common_comparison_category - cppreference.com

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:

[edit] Template parameters ...Ts - a possibly empty list of types [edit] Helper template

template< class... Ts >
using common_comparison_category_t = common_comparison_category<Ts...>::type;

(since C++20) [edit] Member types Member type Definition type the strongest common comparison category (as defined above) [edit] Possible implementation [edit] Example [edit] See also the result type of 3-way comparison that supports all 6 operators and is substitutable
(class) [edit] the result type of 3-way comparison that supports all 6 operators and is not substitutable
(class) [edit] the result type of 3-way comparison that supports all 6 operators, is not substitutable, and allows incomparable values
(class) [edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4