diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2024-11-15 22:03:20 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2024-11-27 12:30:01 +0000 |
commit | e7aa614d7372b5d3cbcd2400838c80ef905ba381 (patch) | |
tree | ba07e153e2bd9467c0a83475bbb24516b497ec17 /gcc | |
parent | 751f91be72d8b73a9dc71456f475268397330100 (diff) | |
download | gcc-e7aa614d7372b5d3cbcd2400838c80ef905ba381.zip gcc-e7aa614d7372b5d3cbcd2400838c80ef905ba381.tar.gz gcc-e7aa614d7372b5d3cbcd2400838c80ef905ba381.tar.bz2 |
libstdc++: Add debug assertions to std::list and std::forward_list
While working on fancy pointer support for the linked lists I noticed
they didn't have any debug assertions. This adds the obvious non-empty
assertions to front() and back().
libstdc++-v3/ChangeLog:
* include/bits/forward_list.h (forward_list::front): Add
non-empty assertions.
* include/bits/stl_list.h (list::front, list::back): Add
non-empty assertions.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions