What's up with Iterators?
Posted on 1998-01-17
I was thrilled to see the support for containers (i.e. vector, list, etc) in C++, but the concept of iterators eludes me. I see they are all over these containers and since I don't really know how to use them, I'm having trouble implementing the containers.
I was thrying to implement a vector full of structs (or classes perhaps). How would I go about doing this, and then how to iterators play a part in operating on this vector? How does one obtain an iterator? Any insight would be much appreciated!