Logo
Explore Help
Sign In
shylie/llvm-project
1
0
Fork 0
You've already forked llvm-project
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
llvm-project/libcxx/test/std/strings/basic.string/string.capacity
History
Marek Kurdej 841132efda [libc++] [P0966] [C++20] Fix bug PR45368 by correctly implementing P0966: string::reserve should not shrink.
This patch fixes the implementation as well as the tests that didn't actually test the wanted behaviour.
You'll find all the details in the bug report.
It adds as well deprecation warning for reserve() (without argument) and adds a test.

http://wg21.link/P0966R1
https://bugs.llvm.org/show_bug.cgi?id=45368
https://reviews.llvm.org/D54992

Reviewed By: ldionne, #libc

Differential Revision: https://reviews.llvm.org/D91778
2020-11-26 10:13:12 +01:00
..
capacity.pass.cpp
…
clear.pass.cpp
…
empty.pass.cpp
…
empty.verify.cpp
…
length.pass.cpp
…
max_size.pass.cpp
…
over_max_size.pass.cpp
…
reserve_size.pass.cpp
[libc++] [P0966] [C++20] Fix bug PR45368 by correctly implementing P0966: string::reserve should not shrink.
2020-11-26 10:13:12 +01:00
reserve.deprecated_in_cxx20.verify.cpp
[libc++] [P0966] [C++20] Fix bug PR45368 by correctly implementing P0966: string::reserve should not shrink.
2020-11-26 10:13:12 +01:00
reserve.pass.cpp
[libc++] [P0966] [C++20] Fix bug PR45368 by correctly implementing P0966: string::reserve should not shrink.
2020-11-26 10:13:12 +01:00
resize_size_char.pass.cpp
…
resize_size.pass.cpp
…
shrink_to_fit.pass.cpp
…
size.pass.cpp
…
Powered by Gitea Version: 1.23.1 Page: 1117ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API