]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Add conditional noexcept to remaining range access functions
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Feb 2025 19:43:05 +0000 (19:43 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 15 Feb 2025 10:58:56 +0000 (10:58 +0000)
commit7bc72a3d209d60803ac7a8ea8d725dcc2c747259
tree300eb10c4ada37883de325bca42bbd7464b72a91
parent08f70200ce01eea42eed7c6fcdcf300a8812be95
libstdc++: Add conditional noexcept to remaining range access functions

Add conditional noexcept to the remaining range access functions that
were not changed in r15-5669-g8692cb10e82e72. This is now being proposed
for C++26 by P3623R0 (not published yet).

libstdc++-v3/ChangeLog:

* include/bits/range_access.h (rbegin, rend, crbegin, crend):
Add conditional noexcept, as per P3623R0.
* testsuite/24_iterators/headers/iterator/range_access.cc: Add
noexcept-specifier to rbegin, rend, crbegin and crend
declarations.
libstdc++-v3/include/bits/range_access.h
libstdc++-v3/testsuite/24_iterators/headers/iterator/range_access.cc