C++ Logo

std-proposals

Advanced search

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

From: Jonathan Wakely <cxx_at_[hidden]>
Date: Mon, 8 Dec 2025 16:09:21 +0000
On Mon, 8 Dec 2025 at 15:29, Nikl Kelbon via Std-Proposals <
std-proposals_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...
>
>
>
If your program relies on a specific outcome for self-move-assign then you
should probably fix it.

Received on 2025-12-08 16:09:42