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

Comparator for non-strict decreasing comparison (greater than or equal to). More...

#include <comparator.h>

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

Public Member Functions

bool compare (const TYPE &t1, const TYPE &t2) const override
 Compares two elements to check if the first is greater than or equal to the second.
 
- 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::decreaseNotStrictComparator< TYPE >

Comparator for non-strict decreasing comparison (greater than or equal to).

Template Parameters
TYPEType of the elements being compared

This class compares two elements and returns true if the first element is greater than or equal to the second.

Member Function Documentation

◆ compare()

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

Compares two elements to check if the first is greater than or equal to the second.

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

Implements original::comparator< TYPE >.


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