Very convenient way of learning Boost.Range by example.…
Delimited ranges
Phenomenal article by Eric Niebler. Lately, I had to write a similar iterator and I was at first puzzled by the need of taking into account for the sentinel.…
counting_range vs irange
The main difference is that irange is a random-access range while counting_range isn't. counting_range is based on Boost.Iterator's counting_iterator which uses all the underlying integers operations directly. Integers in C++ almost fit the iterator concept: the only thing missing is an operator*. counting_iterator provides an…
How to make your class a Boost.Range
THE single reference to keep in mind. I wasted half a day trying to understand how to make my class compliant. Here's the reference…
Range-for as a built-in algorithm
Briefly, range-for is the only algorithm C++11 actually wired into the language itself. (Herb Sutter)…