ENH: improve HashSet construction and assignment

- make construct from UList explicit and provide corresponding
  assignment operator.

- add construct,insert,set,assignment from FixedList.
  This is convenient when dealing with things like edges or triFaces.
This commit is contained in:
Mark Olesen
2017-04-29 15:19:47 +02:00
parent a2ddf7dd48
commit 6a5ea9a2bf
22 changed files with 490 additions and 252 deletions

View File

@ -128,6 +128,9 @@ int main(int argc, char *argv[])
1, 11, 42
};
setB = FixedList<label, 4>({1, 2, 3, 4});
setB = {1, 2, 4};
setB = List<label>({1, 2, 4});
Info<< "setB : " << setB << endl;
labelPair pair(12, 15);