STYLE: adjust const access for linked-list iterators 'operator*'

- provides const/non-const access to the underlying list, but the
  iterator access itself is const.

- provide linked-list iterator 'found()' method for symmetry with
  hash-table iterators. Use nullptr for more clarity.
This commit is contained in:
Mark Olesen
2017-05-12 12:26:28 +02:00
parent f73b5b629f
commit 0e7b135181
10 changed files with 169 additions and 139 deletions

View File

@ -56,7 +56,6 @@ int main(int argc, char *argv[])
Info<< "element:" << *iter << endl;
}
Info<< nl << "And again using the same STL iterator: " << nl << endl;
forAllIters(myList, iter)