ORIGINAL
|
Comparator for decreasing comparison (greater than). More...
#include <comparator.h>
Public Member Functions | |
bool | compare (const TYPE &t1, const TYPE &t2) const override |
Compares two elements to check if the first is greater than the second. | |
![]() | |
virtual | ~comparator ()=default |
Virtual destructor for the comparator class. | |
bool | operator() (const TYPE &t1, const TYPE &t2) const |
Function call operator for comparing two elements using the compare method. | |
Comparator for decreasing comparison (greater than).
TYPE | Type of the elements being compared |
This class compares two elements and returns true
if the first element is greater than the second.
|
overridevirtual |
Compares two elements to check if the first is greater than the second.
t1 | The first element to compare. |
t2 | The second element to compare. |
true
if t1
is greater than t2
, otherwise false
. Implements original::comparator< TYPE >.