Hash.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
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 } // namespace __gnu_cxx
00036 
00038 namespace zypp
00039 { 
00040 
00041   using __gnu_cxx::hash_set;
00042   using __gnu_cxx::hash_map;
00043 
00045 } // namespace zypp
00047 #endif // ZYPP_BASE_HASH_H

Generated on Tue Sep 25 19:22:58 2007 for libzypp by  doxygen 1.5.3