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:
Mark Olesen
2017-05-02 01:58:38 +02:00
parent 8f75bfbed5
commit f8c58bdd5c
4 changed files with 134 additions and 18 deletions

View File

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