What is return value from std::vector erase operator, according to the standard?
问题 I prefer to get info from the source, for this case this is ISO-IEC 14882, where erase method is described as the following: "iterator erase(const_iterator position); iterator erase(const_iterator first, const_iterator last); Effects: Invalidates iterators and references at or after the point of the erase. Complexity: The destructor of T is called the number of times equal to the number of the elements erased, but the move assignment operator of T is called the number of times equal to the