Closed mo-xiaoming closed 2 years ago
References and iterators to the erased elements are invalidated.
cppreference
cppreference