ORIGINAL
Loading...
Searching...
No Matches
original::equalComparator< TYPE > Class Template Referencefinal

Comparator for equality comparison. More...

#include <comparator.h>

Inheritance diagram for original::equalComparator< TYPE >:
Inheritance graph
Collaboration diagram for original::equalComparator< TYPE >:
Collaboration graph

Public Member Functions

bool compare (const TYPE &t1, const TYPE &t2) const override
 Compares two elements to check if they are equal.
 
- Public Member Functions inherited from original::comparator< TYPE >
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.
 

Detailed Description

template<typename TYPE>
class original::equalComparator< TYPE >

Comparator for equality comparison.

Template Parameters
TYPEType of the elements being compared

This class compares two elements and returns true if the elements are equal.

Member Function Documentation

◆ compare()

template<typename TYPE>
auto original::equalComparator< TYPE >::compare ( const TYPE & t1,
const TYPE & t2 ) const
overridevirtual

Compares two elements to check if they are equal.

Parameters
t1The first element to compare.
t2The second element to compare.
Returns
true if t1 is equal to t2, otherwise false.

Implements original::comparator< TYPE >.


The documentation for this class was generated from the following file: