mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: add HashTable += operation (combines HashTables)
- adjust return values of HashSet operators.
This commit is contained in:
@ -352,6 +352,16 @@ int main()
|
||||
HashTable<scalar> table1b(std::move(table2));
|
||||
Info<<"table1 = " << table1b << nl <<"table2 = " << table2 << nl;
|
||||
|
||||
table1b.set("more", 14.0);
|
||||
table1b.set("less", 15.0);
|
||||
table1b.set("other", 16.0);
|
||||
|
||||
Info<<"Test a += b " << nl;
|
||||
Info<<"a = " << flatOutput(table1b.sortedToc()) << nl
|
||||
<<"b = " << flatOutput(table3.sortedToc()) << nl;
|
||||
|
||||
Info<<"=> " << (table1b += table3) << nl;
|
||||
|
||||
Info<< "\nDone\n";
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user