Skip to content

Commit dfeaf68

Browse files
committed
[libc++][ranges] implement 'ranges::shift_left'
1 parent 20b1cce commit dfeaf68

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libcxx/test/std/algorithms/ranges_robust_against_proxy_iterators.pass.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,6 @@ constexpr void run_tests() {
159159
test(std::ranges::remove_if, in, unary_pred);
160160
test(std::ranges::reverse, in);
161161
test_mid(std::ranges::rotate, in, mid);
162-
#if TEST_STD_VER >= 23
163-
test(std::ranges::shift_left, in, count);
164-
#endif
165162
if (!std::is_constant_evaluated()) // `shuffle` isn't `constexpr`.
166163
test(std::ranges::shuffle, in, rand_gen());
167164
if (!std::is_constant_evaluated()) {
@@ -185,7 +182,9 @@ constexpr void run_tests() {
185182
test(std::ranges::sort_heap, in);
186183
test(std::ranges::prev_permutation, in);
187184
test(std::ranges::next_permutation, in);
188-
185+
#if TEST_STD_VER >= 23
186+
test(std::ranges::shift_left, in, count);
187+
#endif
189188
// The algorithms that work on uninitialized memory have constraints that prevent proxy iterators from being used with
190189
// them.
191190
}

0 commit comments

Comments
 (0)