https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86013

--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The standard specifically says that if reallocation occurs then iterators and
points are invalidated, which is how it talks about copying to new storage.

You are making up an interpretation for shrink_to_fit which is novel, not
supported by the standard, and not intended by the designers of the feature.

Reply via email to