diff options
| author | Mark de Wever <koraq@xs4all.nl> | 2024-07-23 18:03:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-23 12:03:28 -0400 |
| commit | c2e438675754b83c31d7d5ba40cb13fe77e795de (patch) | |
| tree | 9f5864b0a36e7978a50d52599a12a77262828e4b /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface | |
| parent | 3c8efd79283b4c9d25483bc69e3096ccdbddddef (diff) | |
[libc++][vector<bool>] Tests shrink_to_fit requirement. (#98009)
`vector<bool>`'s shrink_to_fit implementation is using the
"swap-to-free-container-resources-trick" which only shrinks when the
input vector is empty. Since the request to shrink_to_fit is
non-binding, this is a valid implementation. It is not a high-quality
implementation. Since `vector<bool>` is not a very popular container the
implementation has not been changed and only a test to validate the
non-growing property has been added.
This was discovered while investigating #95161.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedProcessPythonInterface')
0 files changed, 0 insertions, 0 deletions
