mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
This patch implements P3828R1: Rename the to_input view to as_input. The paper suggest renaming the feature test macro without changing the value and this patch follows. libstdc++-v3/ChangeLog: * include/bits/version.def (ranges_to_input): Rename to... (ranges_as_input): Rename from ranges_as_input. * include/bits/version.h: Regenerate. * include/std/ranges (ranges::to_input_view, views::to_input) (__detail::__can_to_input, views::_ToInput): Rename to... (ranges::as_input_view, views::as_input, __detail::__can_as_input) (views::_AsInput): Rename from above... * src/c++23/std.cc.in: Rename views::to_input and to_input_view export. * testsuite/25_algorithms/contains/1.cc: Replace views::to_input with views::as_input. * testsuite/std/ranges/adaptors/to_input/1.cc: Move to... * testsuite/std/ranges/adaptors/as_input/1.cc: ...here, and replace views::to_input with views::as_input. gcc/testsuite/ChangeLog: * g++.dg/reflect/range_args.C: Replace views::to_input with views::as_input. Reviewed-by: Jonathan Wakely <jwakely@redhat.com> Signed-off-by: Tomasz Kamiński <tkaminsk@redhat.com>