![]() |
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/equiv.h>
Public Types | |
typedef Pair< K, T > | pair_t |
typedef pair_t | t |
Public Member Functions | |
bool | isEqual (const pair_t &v1, const pair_t &v2) const |
Static Public Member Functions | |
static bool | equals (const pair_t &v1, const pair_t &v2) |
Static Public Attributes | |
static AssocEquiv< K, T, E > | def |
An associative equivallence may be used to transform data structure into a map. If the items of data structure are represented as pair of (key, values), this comparator provides comparison of items based on the key member.
This class is also the default comparator of pairs.
K | Key type. |
T | Value type. |
E | Equivalence for the key. |
References elm::equals(), and Pair< T1, T2 >::fst.
Referenced by AssocEquiv< K, T, E >::isEqual().
References AssocEquiv< K, T, E >::equals().
|
static |