[Bug libstdc++/86013] std::vector::shrink_to_fit() could sometimes use realloc()
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 1 08:06:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86013
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I wonder if technically shrink_to_fit() is allowed to elide the shrinking? And
yes, I'm equally shocked about the need to copy!
More information about the Gcc-bugs
mailing list