std::is_eq, std::is_neq, std::is_lt, std::is_gt, std::is_lteq, std::is_gteq
From cppreference.com
 
 
 
 
 
 C++ 
 Feature test macros (C++20)
 Concepts library (C++20)
 Metaprogramming library (C++11)
 Ranges library (C++20)
 Filesystem library (C++17)
 Concurrency support library (C++11)
 Execution control library (C++26)
Utilities library 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  
  
 
 
 Type support (basic types, RTTI)
 Library feature-test macros (C++20)
(C++11)
(C++20)
(C++26)
(C++20)
 Coroutine support (C++20)
 Contract support (C++26)
(C++20)(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
  is_eqis_ltis_lteq
(C++20)(C++20)(C++20)
  is_neqis_gtis_gteq
(C++20)(C++20)(C++20)
 General utilities
 Relational operators (deprecated in C++20)
(C++20)(C++20)(C++20)
  (C++20)(C++20)(C++20)
(C++20)
 Swap and type operations 
 Common vocabulary types
Defined in header 
 
 
<compare> 
 constexpr bool is_eq( std::partial_ordering cmp ) noexcept;
 (1) 
 (since C++20) 
constexpr bool is_neq( std::partial_ordering cmp ) noexcept;
 (2) 
 (since C++20) 
constexpr bool is_lt( std::partial_ordering cmp ) noexcept;
 (3) 
 (since C++20) 
constexpr bool is_lteq( std::partial_ordering cmp ) noexcept;
 (4) 
 (since C++20) 
constexpr bool is_gt( std::partial_ordering cmp ) noexcept;
 (5) 
 (since C++20) 
constexpr bool is_gteq( std::partial_ordering cmp ) noexcept;
 (6) 
 (since C++20) 
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
Contents
[edit] Parameters
 cmp
 -
 result of 3-way comparison
[edit] Return value
bool result of the corresponding relational operation
[edit] Example
 This section is incomplete
Reason: no example
Reason: no example
[edit] See also
(C++20)
(class) [edit]