Iteration policy that iterates over a domain in C-order.
More...
#include <range-iteration.hpp>
|
| template<class RangeType , typename Func > |
| static void | forEach (const RangeType &range, Func func) |
| | Call a function for each index in the range. More...
|
| |
template<size_t rank>
struct schnek::RangeCIterationPolicy< rank >
Iteration policy that iterates over a domain in C-order.
- Template Parameters
-
| rank | the rank of the domain to iterate over |
◆ forEach()
template<size_t rank>
template<class RangeType , typename Func >
Call a function for each index in the range.
The range will be iterated over in C-ordering
- Template Parameters
-
| RangeType | The range type. Requires accessor methods getLo() and getHi() that return the array-like bounds of the range with length rank |
| Func | The function that will be called with an array-like index of length rank |
- Parameters
-
| range | The range over which to iterate |
| func | The function that will be called for each position in the range |
The documentation for this struct was generated from the following file: