Go to the documentation of this file. 1 #ifndef ITERATOR_UTILS_H 2 #define ITERATOR_UTILS_H 14 inline T increment(
const T& a,
int n=1)
17 for(
int i=0;i<n;i++) ++x;
22 inline T decrement(
const T& a,
int n=1)
25 for(
int i=0;i<n;i++) --x;
31 inline int iterator_diff(
const T& a,
const T& b)
35 while(x!=a) { ++x; ++n; }