Mercurial > repos > zzhou > spp_phantompeak
annotate spp/src/pc.h @ 16:5648b4efe736 draft
Uploaded
| author | zzhou |
|---|---|
| date | Tue, 27 Nov 2012 16:22:26 -0500 |
| parents | ce08b0efa3fd |
| children |
| rev | line source |
|---|---|
| 6 | 1 #ifndef PC_H |
| 2 #define PC_H 1 | |
| 3 #include <functional> | |
| 4 //#include <hash_map.h> | |
| 5 #include <ext/hash_set> | |
| 6 #include <ext/hash_map> | |
| 7 | |
| 8 | |
| 9 namespace __gnu_cxx | |
| 10 { | |
| 11 template<> struct hash< std::string > | |
| 12 { | |
| 13 size_t operator()( const std::string& x ) const | |
| 14 { | |
| 15 return hash< const char* >()( x.c_str() ); | |
| 16 } | |
| 17 }; | |
| 18 } | |
| 19 | |
| 20 #endif |
