Defined in header
Function object for performing comparisons. Deduces the parameter types of the function call operator from the arguments (but not the return type).
||/* unspecified */|
| checks if the first argument is greater than the second |
(public member function)
template< class T, class U >
requires StrictTotallyOrderedWith<T, U> ||
std::ranges::greater requires all six comparison operators
!= to be valid (via the
StrictTotallyOrderedWith constraint) and is entirely defined in terms of
std::ranges::less. However, the implementation is free to use operator> directly, because those concepts require the results of the comparison operators to be consistent.
|This section is incomplete|
Reason: no example
| function object implementing x > y |