C++11 range-for loop with iterators
C++
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ForIterator.hpp
LICENSE
README.md

README.md

ForIterator

C++11 range-for loop with iterators. This isn't state-of-the-art ;-) Look into Boost iterator transformers for the whole range of possible iterators.

Usage:

for(auto i : ForIterator(some_list)) {
    // i is the iterator, which was returned by some_list.begin()
    // might be useful for whatever reason
}

Free Software under MIT License, see LICENSE file.