ENH: add HashTable += operation (combines HashTables)

- adjust return values of HashSet operators.
This commit is contained in:
Mark Olesen
2018-01-23 16:35:43 +01:00
parent 7f3d4b3554
commit 39ee5d5079
6 changed files with 75 additions and 38 deletions

View File

@ -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;