Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Comparator< T > Class Template Reference

#include </home/casse/Dev/elm/src/concepts.h>

Public Member Functions

int doCompare (const T &object1, const T &object2)
 

Static Public Member Functions

static int compare (const T &object1, const T &object2)
 

Detailed Description

template<class T>
class elm::concept::Comparator< T >

This concept must be implemented by classes providing comparisons of values (strict order).

Parameters
TType of objects to compare.
Implemented by:
AssocComparator Comparator DynamicComparator GlobalComparator ReverseComparator StaticComparator
Used by:

Member Function Documentation

◆ compare()

static int compare ( const T &  object1,
const T &  object2 
)
static

Compare two objects.

Parameters
object1First object to compare.
object2Second 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
object1First object to compare.
object2Second 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: