#include </home/casse/Dev/elm/src/concepts.h>
|
int | doCompare (const T &object1, const T &object2) |
|
|
static int | compare (const T &object1, const T &object2) |
|
template<class T>
class elm::concept::Comparator< T >
This concept must be implemented by classes providing comparisons of values (strict order).
- Parameters
-
T | Type of objects to compare. |
- Implemented by:
- AssocComparator Comparator DynamicComparator GlobalComparator ReverseComparator StaticComparator
- Used by:
◆ compare()
static int compare |
( |
const T & |
object1, |
|
|
const T & |
object2 |
|
) |
| |
|
static |
Compare two objects.
- Parameters
-
object1 | First object to compare. |
object2 | Second object to compare. |
- Returns
- <0 if object 1 is less than object 2, 0 if they are equals, >0 else.
- Deprecated:
- Non-static version of this method is preferred now.
◆ doCompare()
int doCompare |
( |
const T & |
object1, |
|
|
const T & |
object2 |
|
) |
| |
Compare two objects.
- Parameters
-
object1 | First object to compare. |
object2 | Second object to compare. |
- Returns
- <0 if object 1 is less than object 2, 0 if they are equals, >0 else.
- Deprecated:
- Non-static version of this method is preferred now.
The documentation for this class was generated from the following file: