vector erase - invalidated iterator

I am confused by the text on the page:
http://www.cplusplus.com/reference/stl/vector/erase/

It says:
This invalidates all iterator and references to elements after position or first.


It says that iterators AFTER the erased iterator are invalidated.
So the erased iterator itself is not invalidated? That is confusing to me.

Can anybody confirm that erased iterators are still valid?
No, the erased iterator is not valid. It should say that it invalidates all iterators and references to position (or first) and after. It returns a valid iterator, though, which can possibly be the end iterator.
Thank you!
Topic archived. No new replies allowed.