Replaced the bogus find(const String &key) method with the proper find(const Key &key) one. Also removed the bogus find(const char *key) (which not only doesn't work correctly for non-string keys, but also usually will be *less* efficient)

svn-id: r22871
This commit is contained in:
Max Horn 2006-06-03 13:32:53 +00:00
parent a2894d9a82
commit 5a1eaabceb

View file

@ -202,20 +202,20 @@ public:
return const_iterator((uint)-1, this);
}
const_iterator find(const String &key) const {
const_iterator find(const Key &key) const {
uint ctr = lookup(key);
if (_arr[ctr])
return const_iterator(ctr, this);
return end();
}
/*
const_iterator find(const char *key) const {
uint ctr = lookup(key);
if (_arr[ctr])
return const_iterator(ctr, this);
return end();
}
*/
// TODO: insert() method?