[libcxx-commits] [libcxx] [libc++][ranges] Implement `ranges::stride_view`. (PR #65200)
Will Hawkins via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Sep 15 06:25:36 PDT 2023
================
@@ -266,6 +266,13 @@ export namespace std {
using std::ranges::views::zip;
} // namespace views
+ // [range.stride], stride view
+ using std::ranges::stride_view;
+
+ namespace views {
+ using std::ranges::views::stride;
+ }
+
----------------
hawkinsw wrote:
I just want to make sure that I understand:
In C++20 there is an extension that would enable the use of this module. `std::ranges::stride_view` is only available as of C++23. So, in the case where this module was used as an extension in a C++20-compatible compiler, without this guard there would be a problem.
I hope that I am understanding correctly! Great catch!
https://github.com/llvm/llvm-project/pull/65200
More information about the libcxx-commits
mailing list