STL vector vs map erase

前端 未结 5 1899
暖寄归人
暖寄归人 2020-12-29 08:43

In the STL almost all containers have an erase function. The question I have is in a vector, the erase function returns an iterator pointing to the next element in the vect

5条回答
  •  一整个雨季
    2020-12-29 09:14

    Just as an aside, the STL shipped with MS Visual Studio C++ (Dinkumware IIRC) provides a map implementation with an erase function returning an iterator to the next element.

    They do note it's not standards conforming.

提交回复
热议问题