mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: HashSet iterators operator* now return Key.
- much more useful than returning nil. Can now use with a for range:
for (auto i : myLabelHashSet)
{
...
}
This commit is contained in:
@ -206,6 +206,12 @@ int main(int argc, char *argv[])
|
||||
Info<< "added " << added << " from " << someLst.size() << endl;
|
||||
Info<< "setD : " << flatOutput(setD) << endl;
|
||||
|
||||
Info<< "setD for-range()" << nl;
|
||||
|
||||
for (auto i : setD)
|
||||
{
|
||||
Info << i << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user