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:
Mark Olesen
2020-07-24 18:12:31 +02:00
parent 2de4501e47
commit 85e74567ff
6 changed files with 115 additions and 78 deletions

View File

@ -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);
}