HashSet and PackedList get an unset() method

- provides a convenient (and lazy) means of removing entries
This commit is contained in:
Mark Olesen
2009-12-08 10:01:48 +01:00
parent 16c715ceec
commit d2d39c32be
4 changed files with 32 additions and 1 deletions

View File

@ -136,6 +136,12 @@ public:
return insert(lst);
}
//- Unset the specified key - same as erase
bool unset(const Key& key)
{
return HashTable<nil, Key, Hash>::erase(key);
}
// Member Operators