|
lab_hash
Hellish Hash Tables and their Applications
|
hashes namespace: a collection of templated hash functions. More...
Functions | |
| template<> | |
| unsigned int | hash (const char &key, int size) |
| Specialized hash() function for character keys. | |
| template<> | |
| unsigned int | hash (const std::string &key, int size) |
| Specialized hash() function for std::string keys. | |
| template<class K > | |
| unsigned int | hash (const K &key, int size) |
| Computes the hash code of a given key (templated), and returns it modulo size for use in HashTable applications. More... | |
hashes namespace: a collection of templated hash functions.
| unsigned int hashes::hash | ( | const K & | key, |
| int | size | ||
| ) |
Computes the hash code of a given key (templated), and returns it modulo size for use in HashTable applications.
This function must be specialized in order for one of SCHashTable or LPHashTable to contain keys of the specialized type.
| key | The key to be hashes. |
| size | What to modulo the hashcode by. |
1.8.9.1