Back to Home page

Context

Creating a Hash Table in C++

This is what all major companies do (from what I know). Hash maps to store data. But C++, for some reason, does not have it readily available in store. So one has to create their own. Most basic <key,value> pair combination is <int, string> pair and hence I used the same. Depending on requirement this can change, even to <const void*, const void*> pair.

My Code

Implement a Hash class with simple put() and get() methods. Use a main() method to store and retrieve data from Hash object.

Learning