https://github.com/payload/foriterator
C++11 range-for loop with iterators
https://github.com/payload/foriterator
Last synced: 2 months ago
JSON representation
C++11 range-for loop with iterators
- Host: GitHub
- URL: https://github.com/payload/foriterator
- Owner: payload
- License: mit
- Created: 2013-02-17T10:46:28.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-09-07T08:01:52.000Z (almost 9 years ago)
- Last Synced: 2025-03-06T16:22:00.511Z (3 months ago)
- Language: C++
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```c++
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](http://opensource.org/licenses/MIT), see [LICENSE](https://github.com/payload/ForIterator/blob/master/LICENSE) file.