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

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 4 01:31:27 PST 2026


================
@@ -0,0 +1,38 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+// expected-no-diagnostics
----------------
frederick-vs-ja wrote:

Perhaps the remaining things would be testing behavior of default-constructed iterators... And we should still use this pattern:
```C++
constexpr bool test() {
  // stuffs

  return true;
}

int main(int, char**) {
  test();
  static_assert(test());

  return 0;
}

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


More information about the libcxx-commits mailing list