[libcxx-commits] [PATCH] D117332: [libc++] Make sure basic_string::reserve never shrinks in all standard modes
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jan 14 09:49:04 PST 2022
ldionne added a comment.
Note that we could technically have made the change only for `reserve(n)`, while leaving `reserve()` to actually perform `shrink_to_fit`. However, my opinion is that `reserve()` should be equivalent to `reserve(0)` (which is how it used to be specified before C++20), and so it should behave consistently with it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117332/new/
https://reviews.llvm.org/D117332
More information about the libcxx-commits
mailing list