C++ Logo

std-proposals

Advanced search

Re: [std-proposals] vector::push_back must not invalidate past-the-end iterator

From: Jeremy Rifkin <jeremy_at_[hidden]>
Date: Mon, 8 Dec 2025 09:34:28 -0600
> Please took a time to write into standard all about iterator invalidation
in vector and self move assign in vector/string completely. Now one impl
vector is empty after self move assign, on other - not empty. String - who
knows...

It sounds like you are directing your frustrations at me, which is
misplaced as I did not write the standard specification for these
containers or iterator invalidation or self-move assignment. If you are
frustrated by this, think it is worth fixing, and have an idea for fixing
it feel free to write a proposal paper, that’s what this mailing list is
for after all.

Cheers,
Jeremy

On Mon, Dec 8, 2025 at 09:29 Nikl Kelbon <kelbonage_at_[hidden]> wrote:

> > Pls tk th tme t wrt t wrds cmpltly.
>
> Please took a time to write into standard all about iterator invalidation
>> in vector and self move assign in vector/string completely. Now one impl
>> vector is empty after self move assign, on other - not empty. String - who
>> knows...
>
>
>
>

Received on 2025-12-08 15:34:41