Created
November 6, 2013 14:40
-
-
Save aozturk/7337075 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Default hash function class | |
template <typename K> | |
struct KeyHash { | |
unsigned long operator()(const K& key) const | |
{ | |
return reinterpret_cast<unsigned long>(key) % TABLE_SIZE; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment