So I've been getting into the new C++ using GCC 4.6 which now has range-based for-loops. I've found this really nice for iterating over arrays and vectors.
For mainly aesthetic reasons I wondered if there was a way to use this to replace the standard
for(int i = min; i < max; i++) {}
with something like
for(int& i : std::range(min, max)) {}
Is there something natively built into the new C++ standard that allows me to do this? Or do I have to write my own range/iterator class?