From cppreference.com
Defined in header
constexprboolis_eq(std::partial_orderingcmp)noexcept; (1) (since C++20)constexprboolis_neq(std::partial_orderingcmp)noexcept; (2) (since C++20)constexprboolis_lt(std::partial_orderingcmp)noexcept; (3) (since C++20)constexprboolis_lteq(std::partial_orderingcmp)noexcept; (4) (since C++20)constexprboolis_gt(std::partial_orderingcmp)noexcept; (5) (since C++20)constexprboolis_gteq(std::partial_orderingcmp)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
Parameters
cmp - result of 3-way comparison Return value
bool result of the corresponding relational operation
Example
See also
(C++20)
the result type of 3-way comparison that supports all 6 operators, is not substitutable, and allows incomparable values
(class)