mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: consistency of HashSet setMany(), insertMany() with packed-list version
- this also provides a better separation of the intent (ie, inserting a single value, or inserting multiply values)
This commit is contained in:
@ -188,10 +188,10 @@ int main(int argc, char *argv[])
|
||||
Info<< "setB : " << setB << endl;
|
||||
|
||||
labelPair pair(12, 15);
|
||||
setB.set(pair);
|
||||
setB.setMany(pair);
|
||||
|
||||
Info<< "setB : " << setB << endl;
|
||||
setB.unset(pair);
|
||||
setB.unsetMany(pair);
|
||||
|
||||
|
||||
labelHashSet setC(1);
|
||||
@ -257,7 +257,7 @@ int main(int argc, char *argv[])
|
||||
someLst[elemI] = elemI*elemI;
|
||||
}
|
||||
|
||||
label added = setD.set(someLst);
|
||||
label added = setD.setMany(someLst);
|
||||
Info<< "added " << added << " from " << someLst.size() << endl;
|
||||
Info<< "setD : " << flatOutput(setD) << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user