Commit 5b628ebb authored by Mark Olesen's avatar Mark Olesen
Browse files

HashSet - use AnyType, AnyHash templates as per HashTable

- this probably should have been in commit c7c9a6e0 (2009-11-04)
  but got overseen in the HashTbl -> HashTable switch
parent 745d8e47
......@@ -44,14 +44,18 @@ Foam::HashSet<Key, Hash>::HashSet(const UList<Key>& lst)
template<class Key, class Hash>
template<class AnyType>
Foam::HashSet<Key, Hash>::HashSet(const HashTable<AnyType, Key, Hash>& h)
template<class AnyType, class AnyHash>
Foam::HashSet<Key, Hash>::HashSet
const HashTable<AnyType, Key, AnyHash>& h
HashTable<nil, Key, Hash>(h.size())
typename HashTable<AnyType, Key, Hash>::const_iterator cit = h.cbegin();
typename HashTable<AnyType, Key, AnyHash>::const_iterator
cit = h.cbegin();
cit != h.cend();
......@@ -106,8 +106,8 @@ public:
//- Construct from the keys of another HashTable,
// the type of values held is arbitrary.
template<class AnyType>
HashSet(const HashTable<AnyType, Key, Hash>&);
template<class AnyType, class AnyHash>
HashSet(const HashTable<AnyType, Key, AnyHash>&);
// Member Functions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment