blob: 2276a4d46281b6415feb1f8acd1c53ddcc41a7eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef STL_HASHMAP_H_
#define STL_HASHMAP_H_
#ifdef CONFIG_USE_0X
#include <unordered_map>
#define hashmap std::unordered_map
#else
#include <ext/hash_map>
namespace __gnu_cxx
{
template<>
struct hash<long long int>
{
size_t operator()(long long int __x) const
{
return __x;
}
};
template<>
struct hash<unsigned long long int>
{
size_t operator()(unsigned long long int __x) const
{
return __x;
}
};
};
#define hashmap __gnu_cxx::hash_map
#endif
#endif
|