Elm
1.0
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/compare.h>
Public Member Functions | |
int | doCompare (const T &v1, const T &v2) const |
Static Public Member Functions | |
static int | compare (const T &v1, const T &v2) |
Comparator concept (elm/compare.h) allows comparing two data. Comparator may be used statically with the compare() method but also as in instance with doCompare() method. As a default, doCompare() performs a call to compare().
Several implementation of Comparator concept exists:
|
static |
Compare v1 and v2 and returns:
v1 | First value. |
v2 | Second value |
Referenced by elm::Comparator< T >::doCompare().
int elm::Comparator< T >::doCompare | ( | const T & | v1, |
const T & | v2 | ||
) | const |
Compare v1 and v2 and returns:
v1 | First value. |
v2 | Second value |
References elm::Comparator< T >::compare().