std::greater
Min standard notice:
Header: <functional>
Function object for performing comparisons. The main template invokes operator> on type T.
# Declarations
template< class T >
struct greater;
(until C++14)
template< class T = void >
struct greater;
(since C++14)
# Parameters
lhs, rhs: values to compare
# Return value
lhs > rhs.
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 2562 | C++98 | the pointer total order might be inconsistent | guaranteed to be consistent |