diff options
| author | Nikolas Klauser <nikolasklauser@berlin.de> | 2025-02-06 09:35:24 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-06 09:35:24 +0100 |
| commit | 4562efc674a5b5e052abdfc40047e82a359d0df0 (patch) | |
| tree | b223ac32b4c0821f4c61e110dee1e6de93daf60d /lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py | |
| parent | f82902fef4a004a7f26d49448e66b2dbeed4d692 (diff) | |
Reapply "[libc++] Simplify the implementation of reserve() and shrink_to_fit() (#113453)" (#125888)
The capacity is now passed correctly and a test for this path is added.
Since we changed the implementation of `reserve(size_type)` to only ever
extend,
it doesn't make a ton of sense anymore to have `__shrink_or_extend`,
since the code
paths of `reserve` and `shrink_to_fit` are now almost completely
separate.
This patch splits up `__shrink_or_extend` so that the individual parts
are in `reserve`
and `shrink_to_fit` depending on where they are needed.
This reverts commit 59f57be94f38758616b1339b293b43af845571af.
Diffstat (limited to 'lldb/test/API/functionalities/scripted_process/TestStackCoreScriptedProcess.py')
0 files changed, 0 insertions, 0 deletions
