template<typename T>
class libMesh::IntRange< T >
The IntRange
templated class is intended to make it easy to loop over integers which are indices of a container.
In cases where such a range is defined by the result of a virtual function call, this allows range-based for loops to be easily written which make only a single such call, rather than a new call for each iteration.
We perform a cast_int operation (no-op in opt mode, test+assert in debug) at construction time to make sure that the given range bounds are representable by the given range type.
- Author
- Roy H. Stogner
Definition at line 51 of file int_range.h.