Safe. The iterator is decremented before the element is erased.