|
RINGMesh
Version 5.0.0
A programming library for geological model meshes
|
#include <common.h>
Public Member Functions | |
| template<typename T1 , typename T2 > | |
| range (T1 begin, T2 end) | |
| template<typename T > | |
| range (T end) | |
| const range & | begin () const |
| const range & | end () const |
| bool | operator!= (const range &) const |
| void | operator++ () |
| index_t | operator* () const |
Protected Attributes | |
| index_t | iter_ { 0 } |
| index_t | last_ { 0 } |
This class can be used to iterate over integer loop. Example: = C++98 loop = for( index_t i = 0; i < n; i++ ) { // do something }
= C++11-like loop =
for( index_t i : range( n ) ) { // do something }
|
inline |
|
inlineexplicit |