Namespaces
Variants
Views
Actions

Talk:cpp/container/vector/erase

From cppreference.com

[edit] Effects

I'd change first sentence of the current long and complex explanation of the erase effects:

 Iterators and references to the erased elements and to the elements
 between them and the end of the container are invalidated.

with much shorter and easier to understand as specified in the C++11 standard document:

Invalidates iterators and references at or after the point of the erase.

--Mloskot (talk) 06:47, 22 November 2013 (PST)

Good idea, done. --Nate (talk) 11:42, 1 December 2013 (PST)

[edit] Inverted complexity explanation

If I'm right, the complexity description 1) actually refers to the version 2) and viceversa.

139.19.106.205 07:23, 3 August 2014 (PDT) Hernán.

Yup, good catch. I've updated the template. --Nate (talk) 16:46, 3 August 2014 (PDT)