Skip to content

Instantly share code, notes, and snippets.

@bga
Created October 25, 2010 15:30
Show Gist options
  • Save bga/645133 to your computer and use it in GitHub Desktop.
Save bga/645133 to your computer and use it in GitHub Desktop.
Const Value& HashTable::_lookup(Const String& key)
{
int hash = _hash(key);
int p = hash%entriesCount;
while(entries[p].hash == hash && p < entriesCount)
{
if(_stringCompare(entries[p].key, key))
return entries[p].value;
++p;
}
return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment