Why should I use iterators instead of array indices?
- Container Independence. It’s a higher level of abstraction for looping over a list
- Guaranteed single consumption. c++ - Why use iterators instead of array indices? - Stack Overflow
Search
Why should I use iterators instead of array indices?