HashSet: Generalised insert(const HashSet<Key, Hash>&)
This commit is contained in:
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user