ORIGINAL
|
Comparator for equality comparison. More...
#include <comparator.h>
Public Member Functions | |
bool | compare (const TYPE &t1, const TYPE &t2) const override |
Compares two elements to check if they are equal. | |
![]() | |
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 equality comparison.
TYPE | Type of the elements being compared |
This class compares two elements and returns true
if the elements are equal.
|
overridevirtual |
Compares two elements to check if they are equal.
t1 | The first element to compare. |
t2 | The second element to compare. |
true
if t1
is equal to t2
, otherwise false
. Implements original::comparator< TYPE >.