Skip to content

Instantly share code, notes, and snippets.

@aozturk
Created November 6, 2013 14:40
Show Gist options
  • Save aozturk/7337075 to your computer and use it in GitHub Desktop.
Save aozturk/7337075 to your computer and use it in GitHub Desktop.
// 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