File: Hash.h

package info (click to toggle)
abyss 2.2.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 15,640 kB
  • sloc: cpp: 109,409; ansic: 6,510; makefile: 2,194; java: 1,354; sh: 732; perl: 672; haskell: 412; python: 45
file content (27 lines) | stat: -rw-r--r-- 586 bytes parent folder | download | duplicates (7)
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
#ifndef HASH_H_
#define HASH_H_ 1

#include "config.h"

#if HAVE_STD_HASH
#ifdef __FUJITSU
# include <string>
#else
# include <functional>
#endif
using std::hash;
# define NAMESPACE_STD_HASH_BEGIN namespace std {
# define NAMESPACE_STD_HASH_END }
#elif HAVE_STD_TR1_HASH
# include <tr1/functional>
using std::tr1::hash;
# define NAMESPACE_STD_HASH_BEGIN namespace std { namespace tr1 {
# define NAMESPACE_STD_HASH_END } }
#else
# include <boost/functional/hash.hpp>
using boost::hash;
# define NAMESPACE_STD_HASH_BEGIN namespace boost {
# define NAMESPACE_STD_HASH_END }
#endif

#endif