| commit | 0942f0c4bf3e129ca059e5dc050b4d9d063151c5 | [log] [tgz] |
|---|---|---|
| author | Nikolas Klauser <nikolasklauser@berlin.de> | Mon Nov 17 15:01:25 2025 |
| committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 17 15:06:44 2025 |
| tree | 4304c42be6916bd4e11971211992d6183dbb81cf | |
| parent | 8b98fff547cd1e6244504bba66130aa3f252c4aa [diff] |
[libc++] Refactor basic_string::__recommend (#162631) This does a couple of things: - code that is only useful for `shrink_to_fit` is moved into that function - `shrink_to_fit` is simplified a bit - `__recommend` is renamed to better reflect what the function actually does - `__allocate_long_buffer` asserts that the passed capacity doesn't fit into the SSO NOKEYCHECK=True GitOrigin-RevId: e95c5c85113066fbf14307e31a533fdb1a7387ef