aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/std
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2025-06-04 10:29:47 -0400
committerPatrick Palka <ppalka@redhat.com>2025-06-04 10:29:47 -0400
commit6545e2f301cc1c276dd039e8739f7cc912ec5ae9 (patch)
treea85743e8ba56899d5c47430ce671a5d8ffa8cb06 /libstdc++-v3/testsuite/std
parent28106a0c5d18173832d8013dccbb6fcc71646868 (diff)
downloadgcc-6545e2f301cc1c276dd039e8739f7cc912ec5ae9.zip
gcc-6545e2f301cc1c276dd039e8739f7cc912ec5ae9.tar.gz
gcc-6545e2f301cc1c276dd039e8739f7cc912ec5ae9.tar.bz2
libstdc++: Implement C++23 P1659R3 starts_with and ends_with
This implements ranges::starts_with and ranges::ends_with from the C++23 paper P1659R3. The corresponding_S_impl member functions take optional optional size parameters __n1 and __n2 of the two ranges, where -1 means the corresponding size is not known. libstdc++-v3/ChangeLog: * include/bits/ranges_algo.h (__starts_with_fn, starts_with): Define. (__ends_with_fn, ends_with): Define. * include/bits/version.def (ranges_starts_ends_with): Define. * include/bits/version.h: Regenerate. * include/std/algorithm: Provide __cpp_lib_ranges_starts_ends_with. * src/c++23/std.cc.in (ranges::starts_with): Export. (ranges::ends_with): Export. * testsuite/25_algorithms/ends_with/1.cc: New test. * testsuite/25_algorithms/starts_with/1.cc: New test. Reviewed-by: Tomasz KamiƄski <tkaminsk@redhat.com> Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
Diffstat (limited to 'libstdc++-v3/testsuite/std')
0 files changed, 0 insertions, 0 deletions