HashSet: Generalised insert(const HashSet<Key, Hash>&)

This commit is contained in:
Henry Weller
2024-03-13 20:53:43 +00:00
parent 9239b3bfa9
commit 7862d93d66
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ Foam::label Foam::HashSet<Key, Hash>::insert(const UList<Key>& lst)
template<class Key, class Hash>
Foam::label Foam::HashSet<Key, Hash>::insert(const HashSet<Key>& set)
Foam::label Foam::HashSet<Key, Hash>::insert(const HashSet<Key, Hash>& set)
{
label count = 0;
for (const_iterator iter = set.cbegin(); iter != set.cend(); ++iter)

View File

@ -118,7 +118,7 @@ public:
//- Insert keys from a HashSet of Key
// Return the number of new elements inserted
label insert(const HashSet<Key>&);
label insert(const HashSet<Key, Hash>&);
//- Same as insert (cannot overwrite nil content)
bool set(const Key& key)