[libcxx-commits] [libcxx] [libc++][ranges] implement `ranges::shift_left` (PR #83231)

via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jan 11 01:08:31 PST 2026


================
@@ -182,7 +182,9 @@ constexpr void run_tests() {
   test(std::ranges::sort_heap, in);
   test(std::ranges::prev_permutation, in);
   test(std::ranges::next_permutation, in);
-
+#if TEST_STD_VER >= 23
+  test(std::ranges::shift_left, in, count);
+#endif
   // The algorithms that work on uninitialized memory have constraints that prevent proxy iterators from being used with
   // them.
----------------
huixie90 wrote:

could you please also add the algorithm in the following test?

```
ranges_robust_against_dangling.pass.cpp

```

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


More information about the libcxx-commits mailing list