[libcxx-commits] [libcxx] [libc++][ranges] Implement `ranges::stride_view`. (PR #65200)

Konstantin Varlamov via libcxx-commits libcxx-commits at lists.llvm.org
Tue Nov 21 20:44:20 PST 2023


================
@@ -0,0 +1,133 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17, c++20
+
+// ranges
+
+// std::views::stride_view
+
+#include "__ranges/stride_view.h"
----------------
var-const wrote:

We generally shouldn't include internal headers in tests so that our tests are more similar to how our actual users are going to be using our code (also our test suite is used by other implementations of the standard library, so we shouldn't rely on things specific to our implementation). We're already including `<ranges>` below, that should be sufficient.


https://github.com/llvm/llvm-project/pull/65200


More information about the libcxx-commits mailing list