I looked at some C ++ containers (vector, deque, list, map, set) and found that none of them implement
erase(reverse_iterator position)
There is a way to get an iterator from reverse_iterator, as described in this.
But why don't the containers above implement the erase member function with reverse_iterator parameter?
Is there a significant difference between an iterator and reverse_iterator, which makes this implementation difficult or was not implemented for another reason?
c ++ c ++ 11
VL-80
source share