This file contains hidden or 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
// Hash map class template | |
template <typename K, typename V, typename F = KeyHash<K>> | |
class HashMap { | |
public: | |
HashMap() { | |
// construct zero initialized hash table of size | |
table = new HashNode<K, V> *[TABLE_SIZE](); | |
} | |
~HashMap() { |