mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: revert bitSet/HashSet setMany() to set() method (issue #837)
- improves backward compatibility and more naming consistency. Retain setMany(iter1, iter2) to avoid ambiguity with the PackedList::set(index, value) method.
This commit is contained in:
@ -188,10 +188,10 @@ int main(int argc, char *argv[])
|
||||
Info<< "setB : " << setB << endl;
|
||||
|
||||
labelPair pair(12, 15);
|
||||
setB.setMany(pair);
|
||||
setB.set(pair);
|
||||
|
||||
Info<< "setB : " << setB << endl;
|
||||
setB.unsetMany(pair);
|
||||
setB.unset(pair);
|
||||
|
||||
|
||||
labelHashSet setC(1);
|
||||
@ -257,7 +257,7 @@ int main(int argc, char *argv[])
|
||||
someLst[elemI] = elemI*elemI;
|
||||
}
|
||||
|
||||
label added = setD.setMany(someLst);
|
||||
label added = setD.set(someLst);
|
||||
Info<< "added " << added << " from " << someLst.size() << endl;
|
||||
Info<< "setD : " << flatOutput(setD) << endl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user