diff --git a/applications/test/HashSet/Test-hashSet.C b/applications/test/HashSet/Test-hashSet.C index c412b26523..b4bdd07cab 100644 --- a/applications/test/HashSet/Test-hashSet.C +++ b/applications/test/HashSet/Test-hashSet.C @@ -73,6 +73,22 @@ void printMinMax(const HashSet& set) } +template +void printHashSet(const HashSet& table) +{ + Info<< table.size() << '(' << nl; + + for (const auto& key : table.sortedToc()) + { + const auto iter = table.find(key); + + Info<< " " << key << " : " << Foam::name(&(iter.key())) << nl; + } + + Info<< ')' << nl; +} + + // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // Main program: @@ -84,33 +100,33 @@ int main(int argc, char *argv[]) << typeid(HashSet