¡@

Home 

c++ Programming Glossary: counting_iterator

C++ range/xrange equivalent in STL or boost?

http://stackoverflow.com/questions/1977339/c-range-xrange-equivalent-in-stl-or-boost

c boost iterator share improve this question Boost has counting_iterator as far as I know which seems to allow only incrementing in steps.. iterator facade #include iostream #include boost iterator counting_iterator.hpp #include boost range iterator_range.hpp #include boost foreach.hpp.. cassert template class T boost iterator_range boost counting_iterator T xrange T to these assertions are somewhat problematic might..