20 #ifndef LIMI_INTERNAL_HASH_H
21 #define LIMI_INTERNAL_HASH_H
28 template<
class A,
class B>
struct hash<pair<A,B>> {
29 inline size_t operator()(
const pair<A,B>& val)
const {
31 Limi::internal::hash_combine(seed, val.first);
32 Limi::internal::hash_combine(seed, val.second);
36 template<
class A,
class B>
struct equal_to<pair<A,B>> {
37 inline bool operator()(
const pair<A,B>& a,
const pair<A,B>& b)
const {
38 return equal_to<A>()(a.first,b.first) && equal_to<B>()(a.second, b.second);
43 #endif // LIMI_INTERNAL_HASH_H
Definition: generics.h:30