[libcxx-commits] [libcxx] [libc++][ranges] Implement `ranges::stride_view`. (PR #65200)
Jakub Mazurkiewicz via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 13 13:55:47 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;
+ }
+
----------------
JMazurkiewicz wrote:
`std` module is available in C++20 as an extensions, we should add language guards:
```suggestion
#if _LIBCPP_STD_VER >= 23
// [range.stride], stride view
using std::ranges::stride_view;
namespace views {
using std::ranges::views::stride;
}
#endif // _LIBCPP_STD_VER >= 23
```
https://github.com/llvm/llvm-project/pull/65200
More information about the libcxx-commits
mailing list