mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: added subtraction operator for HashSet
- offers similarity with bitSet STYLE: remove remnant parent::operator= from HashSet STYLE: code formatting in HashTables
This commit is contained in:
@ -405,7 +405,7 @@ bool Foam::HashTable<T, Key, Hash>::erase(const iterator& iter)
|
||||
template<class T, class Key, class Hash>
|
||||
bool Foam::HashTable<T, Key, Hash>::erase(const Key& key)
|
||||
{
|
||||
auto iter = find(key);
|
||||
iterator iter(find(key));
|
||||
return erase(iter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user