ENH: provide iterators for IndirectList, UIndirectList

- consistency with other containers.
  Allows range-for, enables various std algorithms, and can be used
  with ListOp::create() with an iterator range.
This commit is contained in:
Mark Olesen
2018-03-07 17:50:34 +01:00
parent 77338c8bd0
commit 23b6ea4b85
7 changed files with 230 additions and 99 deletions

View File

@ -41,6 +41,13 @@ void printInfo(const ListType& lst)
<< "addr: " << flatOutput(lst.addressing()) << nl
<< "list: " << flatOutput(lst) << nl
<< endl;
Info<<"for-range :";
for (const auto& val : lst)
{
Info<< " " << val;
}
Info<< nl;
}