commit | f652eff35083224f31264dc25a5b40b21003acb2 | [log] [tgz] |
---|---|---|
author | Peng Liu <winner245@hotmail.com> | Tue Nov 26 16:38:47 2024 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Nov 26 13:41:07 2024 -0800 |
tree | 896cc7b5b16f50e76d53a78e86ab7e0c7c0b63a0 | |
parent | 59974a55044a0e3aea2e8e97530638657594d8a6 [diff] |
[libc++] Fix capacity increase issue with `shrink_to_fit` for `__split_buffer` (#117720) This PR fixes the issue where `__split_buffer::shrink_to_fit` may unexpectedly increase the capacity, similar to the issue for `std::vector` in #97895. The fix follows the same approach used in #97895 for `std::vector`. GitOrigin-RevId: 8458bbe5947db75041579c7c1a0f7f79c8e992d9