Quote:Original post by phil_t
I've never tried it, but vector's iterator is supposed to be a random access iterator... you should be able to do both ++ and -- with it, no?
Yeah, the only thing is that I can't stop at the first element when traversing backwards. Since end() returns a pointer beyond the last element but begin() at the first. I can solve this by handling my own dummy.