diff spp/src/pc.h @ 6:ce08b0efa3fd draft

Uploaded
author zzhou
date Tue, 27 Nov 2012 16:11:40 -0500
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/spp/src/pc.h	Tue Nov 27 16:11:40 2012 -0500
@@ -0,0 +1,20 @@
+#ifndef PC_H
+#define PC_H 1
+#include <functional>
+//#include <hash_map.h>
+#include <ext/hash_set>
+#include <ext/hash_map>
+
+
+namespace __gnu_cxx
+{
+        template<> struct hash< std::string >
+        {
+                size_t operator()( const std::string& x ) const
+                {
+                        return hash< const char* >()( x.c_str() );
+                }
+        };
+}
+
+#endif