Skip to content

Instantly share code, notes, and snippets.

View JacobHughes's full-sized avatar

Jacob Hughes JacobHughes

View GitHub Profile
# initialization file (not found)
@JacobHughes
JacobHughes / HashTable
Created January 22, 2015 03:35
Template Class for Hash Table
template <typename K, typename V>
class HashTable
{
/*
This is my implementation of a generic template class for
a hash table. Type K is the key-type, and V is the data.
This allows any object as the Key or Value.
This implemenation uses a 2D-array for the hash table,
implented with vectors of HashBucket objects.
The HashBucket objects hold and generate hash keys, as well