Boost logo

Boost Users :

From: e r (erwann.rogard_at_[hidden])
Date: 2008-05-27 21:19:10


hello,

is there strided iterator already available somewhere?

iter = vec.begin();

std::advance(iter,offset)
for(unsigned int i=0; i<(vec.size()-offset)/stride; ++i){
 /* do something with iter */
 std::advance(iter,stride)
}

alternatively, a permutation iterator does not seem very practical here...

thanks,

e.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net