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