00001
00002
00003
00004
00005
00006
00007
00008
00012 #ifndef ZYPP_BASE_HASH_H
00013 #define ZYPP_BASE_HASH_H
00014
00015 #include <string>
00016
00017 #include <ext/hash_set>
00018 #include <ext/hash_map>
00019 #include <ext/hash_fun.h>
00020
00022 namespace __gnu_cxx
00023 {
00024
00026 template<>
00027 struct hash<std::string>
00028 {
00029 size_t operator()( const std::string & __s ) const
00030 { return __stl_hash_string(__s.c_str()); }
00031 };
00032
00034 }
00036
00038 namespace zypp
00039 {
00040
00041 using __gnu_cxx::hash_set;
00042 using __gnu_cxx::hash_map;
00043
00045 }
00047 #endif // ZYPP_BASE_HASH_H