Merging the statistics branch into the main trunk. I'll go over how to use this Tuesd...
[cvc5.git] / src / util / hash.h
1 /********************* */
2 /*! \file hash.h
3 ** \verbatim
4 ** Original author: cconway
5 ** Major contributors: mdeters
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 prototype.
8 ** Copyright (c) 2009, 2010 The Analysis of Computer Systems Group (ACSys)
9 ** Courant Institute of Mathematical Sciences
10 ** New York University
11 ** See the file COPYING in the top-level source directory for licensing
12 ** information.\endverbatim
13 **
14 ** \brief [[ Add one-line brief description here ]]
15 **
16 ** [[ Add lengthier description here ]]
17 ** \todo document this file
18 **/
19
20 #ifndef __CVC4__HASH_H_
21 #define __CVC4__HASH_H_
22
23 #include <ext/hash_map>
24 namespace std { using namespace __gnu_cxx; }
25
26 namespace CVC4 {
27
28 struct StringHashFunction {
29 size_t operator()(const std::string& str) const {
30 return std::hash<const char*>()(str.c_str());
31 }
32 };
33
34 }
35
36 #endif /* __CVC4__HASH_H_ */