Quote Originally Posted by Lindley View Post
The reverse iterator might work. I'm betting the const variants don't.
I guess the question is really why the 'erase' functions are specified in terms of only iterator and not in terms of reverse_iterator also. After all a reverse_iterator will position the end-user within the vector just as well as a normal iterator does.

As for const_iterator, does this specify that one can not change the vector in any way through the const_iterator or does this specify only that one can not change the element to which the const_iterator "points" ? If the latter, then a const_iterator should be just as valid as an iterator for use in the 'erase' method.