A RetroSearch Logo

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

Search Query:

Showing content from http://en.cppreference.com/w/cpp/language/../utility/compare/named_comparison_functions.html below:

std::is_eq, std::is_neq, std::is_lt, std::is_gt, std::is_lteq, std::is_gteq

These functions take a result of 3-way comparison and convert it to the result of one of the six relational operators

Specifically, these functions return

1) cmp == 0

2) cmp != 0

3) cmp < 0

4) cmp <= 0

5) cmp > 0

6) cmp >= 0

[edit] Parameters cmp - result of 3-way comparison [edit] Return value

bool result of the corresponding relational operation

[edit] Example [edit] See also 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