diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2025-02-27 21:59:41 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-03-06 16:17:34 +0000 |
commit | 4412e9bb73754a0c9668e80c4b8ee2fefffbbb04 (patch) | |
tree | 61a06b6210efa23b86c523dc23e16044c97cd4d7 /gcc | |
parent | 88a521cc3283ae6b6bccc7afefe4723399ddb975 (diff) | |
download | gcc-4412e9bb73754a0c9668e80c4b8ee2fefffbbb04.zip gcc-4412e9bb73754a0c9668e80c4b8ee2fefffbbb04.tar.gz gcc-4412e9bb73754a0c9668e80c4b8ee2fefffbbb04.tar.bz2 |
libstdc++: Add assertions to std::list::pop_{front,back}
The recently-approved Standard Library Hardening proposal (P3471R4)
gives pop_front and pop_back member functions hardened preconditions,
but std::list was missing assertions on them. Our other sequence
containers do have assertions on those members.
libstdc++-v3/ChangeLog:
* include/bits/stl_list.h (list::pop_front, list::pop_back):
Add non-empty assertions.
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions