|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
25 #include <elm/string.h>
26 #include <elm/util/Pair.h>
35 static inline bool equals(
const T& v1,
const T& v2) {
return v1 == v2; }
36 inline bool isEqual(
const T& v1,
const T& v2)
const {
return equals(v1, v2); }
47 static inline int equal(
const T& v1,
const T& v2) {
return v1.equals(v2); }
48 inline bool isEqual(
const T& v1,
const T& v2)
const {
return equals(v1, v2); }
55 template <
class K,
class T,
class E = Equiv<K> >
71 typedef typename C::t
t;
72 inline bool isEqual(
const t& v1,
const t& v2)
const {
return C::doCompare(v1, v2) == 0; }
73 static inline bool equals(
const t& v1,
const t& v2) {
return C::compare(v1, v2) == 0; }
bool isEqual(const t &v1, const t &v2) const
Definition: equiv.h:72
static AssocEquiv< K, T, E > def
Definition: equiv.h:62
T t
Definition: equiv.h:46
bool equals(const C1 &c1, const C2 &c2)
Definition: util.h:107
static Equiv< T > def
Definition: equiv.h:37
static EqualsEquiv< T > def
Definition: equiv.h:49
bool isEqual(const T &v1, const T &v2) const
Definition: equiv.h:48
static bool equals(const pair_t &v1, const pair_t &v2)
Definition: equiv.h:60
bool isEqual(const T &v1, const T &v2) const
Definition: equiv.h:36
C::t t
Definition: equiv.h:71
bool isEqual(const pair_t &v1, const pair_t &v2) const
Definition: equiv.h:61
static int equal(const T &v1, const T &v2)
Definition: equiv.h:47
Pair< K, T > pair_t
Definition: equiv.h:58
T t
Definition: equiv.h:34
pair_t t
Definition: equiv.h:59
static bool equals(const t &v1, const t &v2)
Definition: equiv.h:73
static bool equals(const T &v1, const T &v2)
Definition: equiv.h:35
T1 fst
Definition: Pair.h:35