Skip to content

Commit

Permalink
Adding a new utility (range.hh) which provides adapters for pairs of
Browse files Browse the repository at this point in the history
iterators that let us use range based loops more easily in Spheral.
Also adds a C++ range based version of Python's "enumerate" method to
iterate over iterators and provide an size_t index simultaneously,
which is a pattern we have a lot in Spheral.  Converted the loops in
Integrator to this new pattern as a test.
  • Loading branch information
jmikeowen committed Dec 1, 2023
1 parent aeb3907 commit 456ecda
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 133 deletions.
Loading

0 comments on commit 456ecda

Please sign in to comment.