Home | History | Annotate | Download | only in ext
      1 #ifndef FAKE_HASH
      2 #define FAKE_HASH
      3 
      4 #include <hash_map>
      5 #include <hash_set>
      6 
      7 namespace __gnu_cxx {
      8 using std::hash_map;
      9 using std::hash_set;
     10 
     11 template <class _Key> struct hash { };
     12 
     13 #define DEFINE_HASH(_type) \
     14     template<> \
     15     struct hash<_type> { \
     16         std::size_t operator()(_type val) const { \
     17             return std::hash<_type>(val); \
     18         } \
     19     }
     20 #undef DEFINE_HASH
     21 
     22 }
     23 
     24 #endif
     25