]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement P3060R3: Add std::views::indices(n)
authorYuao Ma <c8ef@outlook.com>
Tue, 14 Oct 2025 16:28:48 +0000 (00:28 +0800)
committerc8ef <c8ef@outlook.com>
Mon, 20 Oct 2025 16:18:23 +0000 (00:18 +0800)
commit7aefb48bb036c5189bea44fc0d8680812a08ed32
tree551f4fd2903167c30d989288170e5f86b5bdbec9
parent092cb044a7723b3add4c25a0a66482d28f8cea0f
libstdc++: Implement P3060R3: Add std::views::indices(n)

This patch adds the views::indices function using iota.

libstdc++-v3/ChangeLog:

* include/bits/version.def: Add ranges_indices FTM.
* include/bits/version.h: Regenerate.
* include/std/ranges: Implement views::indices.
* testsuite/std/ranges/indices/1.cc: New test.
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/indices/1.cc [new file with mode: 0644]