#include <gnuhash.h>
template<>
class stdext::hash< std::string >
Definition at line 70 of file gnuhash.h.
size_t stdext::hash< std::string >::operator() |
( |
const std::string & |
key) | |
const |
|
inline |
Definition at line 73 of file gnuhash.h.
References k, and start.
75 size_t _HASH_INTSIZE = (
sizeof (size_t)*8);
76 size_t _HASH_SALT_0 = 0x7EF92C3B;
77 size_t _HASH_SALT_1 = 0x9B;
79 for (std::string::const_iterator
start = key.begin();
start != key.end();
start++) {
80 k ^= (*
start&_HASH_SALT_1);
82 k = ( ( (k>>4)&0xF )|( k<<(_HASH_INTSIZE-4) ) );
The documentation for this class was generated from the following file: