mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user