Point Cloud Library (PCL)  1.7.2
hash.h
1 #ifndef HASH_INCLUDED
2 #define HASH_INCLUDED
3 #if defined _WIN32 && !defined __MINGW32__
4 #include <hash_map>
5 using namespace stdext;
6 #else // !_WIN32 || __MINGW32__
7 #define _GLIBCXX_PERMIT_BACKWARD_HASH
8 #include <ext/hash_map>
9 using namespace __gnu_cxx;
10 
11 
12 namespace __gnu_cxx
13 {
14  template<> struct hash<long long> {
15  size_t operator()(long long __x) const { return __x; }
16  };
17  template<> struct hash<const long long> {
18  size_t operator()(const long long __x) const { return __x; }
19  };
20 
21 
22  template<> struct hash<unsigned long long> {
23  size_t operator()(unsigned long long __x) const { return __x; }
24  };
25  template<> struct hash<const unsigned long long> {
26  size_t operator()(const unsigned long long __x) const { return __x; }
27  };
28 }
29 #endif // _WIN32 && !__MINGW32__
30 #endif // HASH_INCLUDED
31 
size_t operator()(const unsigned long long __x) const
Definition: hash.h:26
size_t operator()(const long long __x) const
Definition: hash.h:18
size_t operator()(unsigned long long __x) const
Definition: hash.h:23
size_t operator()(long long __x) const
Definition: hash.h:15