libstdc++: Implement range_adaptor_closure from P2387R3 [PR108827]
authorPatrick Palka <ppalka@redhat.com>
Tue, 18 Apr 2023 11:21:13 +0000 (07:21 -0400)
committerPatrick Palka <ppalka@redhat.com>
Tue, 18 Apr 2023 11:24:21 +0000 (07:24 -0400)
commit769c324424500a3d20de7417f62a4e7bce345775
treee9d7e3dd099c9567df2fdea1f4e64fd9c76e74a5
parent033560317078d2a3472f577cf8f39f6be1e9b343
libstdc++: Implement range_adaptor_closure from P2387R3 [PR108827]

PR libstdc++/108827

libstdc++-v3/ChangeLog:

* include/bits/ranges_cmp.h (__cpp_lib_ranges): Bump value
for C++23.
* include/std/ranges (range_adaptor_closure): Define for C++23.
* include/std/version (__cpp_lib_ranges): Bump value for
C++23.
* testsuite/std/ranges/version_c++23.cc: Bump expected value
of __cpp_lib_ranges.
* testsuite/std/ranges/range_adaptor_closure.cc: New test.

(cherry picked from commit cb5c71d16d0fb47638498365f5c857ce7c673eaf)
libstdc++-v3/include/bits/ranges_cmp.h
libstdc++-v3/include/std/ranges
libstdc++-v3/include/std/version
libstdc++-v3/testsuite/std/ranges/range_adaptor_closure.cc [new file with mode: 0644]
libstdc++-v3/testsuite/std/ranges/version_c++23.cc