I am not the best at wording things so I’m going to use an example to ask my question.
If for example, I was making a FPS game in which I used vectors to store bullets (which would be a class of its own) because I did not know how many bullets I would be dealing with at runtime, how would I go about accessing each element of the vector in order to render every bullet to the screen every so many frames per second (pretend I’m using OpenGL as the rendering API if that helps or makes any difference).
I hope this question is clear enough.
(an iterator is basically a pointer to the element being iterated)