Hash table
Hashtable with chaining for collision resolution, memcpy-copy semantics (POD types) and 32-bit indicies instead of pointers. (NUMA-friendly)
Iterator to the key/value pairs of a hash table
GetKey() -
GetValue() -
Get an iterator for the key/value pairs
iterator - the iterator
dmHashTable<dmhash_t, int>::Iterator iter = ht.GetIterator();
while(iter.Next())
{
printf("%s: %d\n", dmHashReverseSafe64(iter.GetKey()), iter.GetValue());
}
Specialized hash table with uint16_t as keys
Specialized hash table with uint32_t as keys
Specialized hash table with uint64_t as keys