]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement ranges::find_last{,_if,_if_not} from P1223R5
authorPatrick Palka <ppalka@redhat.com>
Fri, 3 Feb 2023 15:52:18 +0000 (10:52 -0500)
committerPatrick Palka <ppalka@redhat.com>
Fri, 3 Feb 2023 15:52:18 +0000 (10:52 -0500)
commitc9aef107ce697f58a34734d82f8d2514405c9be0
tree71dd3092d98aa58dccb12b67ab0932bebf5285f2
parent28752bcbbfb2efa1b57db725d7a3e352eabcc336
libstdc++: Implement ranges::find_last{,_if,_if_not} from P1223R5

libstdc++-v3/ChangeLog:

* include/bits/ranges_algo.h (__find_last_fn, find_last):
Define.
(__find_last_if_fn, find_last_if): Define.
(__find_last_if_not_fn, find_last_if_not): Define.
* testsuite/25_algorithms/find_last/1.cc: New test.
* testsuite/25_algorithms/find_last_if/1.cc: New test.
* testsuite/25_algorithms/find_last_if_not/1.cc: New test.
libstdc++-v3/include/bits/ranges_algo.h
libstdc++-v3/testsuite/25_algorithms/find_last/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/find_last_if/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/25_algorithms/find_last_if_not/1.cc [new file with mode: 0644]