summaryrefslogtreecommitdiff
path: root/src/util/hash.h
diff options
context:
space:
mode:
authorChristopher L. Conway <christopherleeconway@gmail.com>2010-05-12 15:15:53 +0000
committerChristopher L. Conway <christopherleeconway@gmail.com>2010-05-12 15:15:53 +0000
commite67d573de13e4421036d7de9559d8ace39571492 (patch)
treef6f02f51b829f77e65c022e80884c87f68c01b64 /src/util/hash.h
parent46e4487c37628217ec64a2b325b287acfb0ae8c5 (diff)
Adding class Smt2 to handle declaration of logic and theory symbols
Diffstat (limited to 'src/util/hash.h')
-rw-r--r--src/util/hash.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/util/hash.h b/src/util/hash.h
new file mode 100644
index 000000000..c72fe47e8
--- /dev/null
+++ b/src/util/hash.h
@@ -0,0 +1,24 @@
+/*
+ * hash.h
+ *
+ * Created on: May 8, 2010
+ * Author: chris
+ */
+
+#ifndef __CVC4__HASH_H_
+#define __CVC4__HASH_H_
+
+#include <ext/hash_map>
+namespace std { using namespace __gnu_cxx; }
+
+namespace CVC4 {
+
+struct StringHashFunction {
+ size_t operator()(const std::string& str) const {
+ return std::hash<const char*>()(str.c_str());
+ }
+};
+
+}
+
+#endif /* __CVC4__HASH_H_ */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback