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:
parent
a2894d9a82
commit
5a1eaabceb
1 changed files with 3 additions and 3 deletions
|
@ -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?
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue