/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/ |
H A D | ranges_partial_sort.pass.cpp | 40 std::ranges::partial_sort(first, mid, last, comp); 53 std::ranges::partial_sort(range, mid, comp); 72 std::same_as<Iter> decltype(auto) last = std::ranges::partial_sort(begin, mid, end); in test_one() 85 std::same_as<Iter> decltype(auto) last = std::ranges::partial_sort(range, mid); in test_one() 154 auto last = std::ranges::partial_sort(b, m, in.end(), std::ranges::greater{}); in test() 164 auto last = std::ranges::partial_sort(in, m, std::ranges::greater{}); in test() 183 auto last = std::ranges::partial_sort(b, m, in.end(), {}, &A::a); in test() 195 auto last = std::ranges::partial_sort(in, m, {}, &A::a); in test()
|
H A D | partial_sort.pass.cpp | 30 std::partial_sort(Iter(work), Iter(work+m), Iter(work+n)); in test() 43 std::partial_sort(Iter(input), Iter(input + 3), Iter(input + 5)); in test() 55 std::partial_sort(&i, &i, &i); // no-op in main()
|
H A D | partial_sort_comp.pass.cpp | 32 std::partial_sort(Iter(work), Iter(work+m), Iter(work+n), std::greater<T>()); in test() 45 std::partial_sort(Iter(input), Iter(input + 3), Iter(input + 5), std::greater<T>()); in test() 57 std::partial_sort(&i, &i, &i, std::greater<int>()); // no-op in main()
|
/llvm-project/libcxx/test/libcxx/algorithms/ |
H A D | partial_sort_stability.pass.cpp | 50 std::partial_sort(v.begin(), v.begin() + kSize / 2, v.end()); in test_randomization() 69 std::partial_sort(v.begin(), v.begin() + kSize / 2, v.end()); in test_same() 70 std::partial_sort(snapshot_v.begin(), snapshot_v.begin() + kSize / 2, snapshot_v.end()); in test_same() 71 …std::partial_sort(snapshot_custom_v.begin(), snapshot_custom_v.begin() + kSize / 2, snapshot_custo… in test_same() 90 std::partial_sort(v.begin(), v.begin() + 5, v.end()); in test_constexpr()
|
H A D | robust_against_cpp20_hostile_iterators.compile.pass.cpp | 169 (void) std::partial_sort(it, it, it); in test() 170 (void) std::partial_sort(it, it, it, pred); in test()
|
H A D | ranges_robust_against_copying_comparators.pass.cpp | 186 (void)std::ranges::partial_sort(first, mid, last, Less(&copies)); assert(copies == 0); in all_the_algorithms() 187 (void)std::ranges::partial_sort(a, mid, Less(&copies)); assert(copies == 0); in all_the_algorithms()
|
H A D | ranges_robust_against_copying_projections.pass.cpp | 183 (void)std::ranges::partial_sort(first, mid, last, Less(), Proj(&copies)); assert(copies == 0); in all_the_algorithms() 184 (void)std::ranges::partial_sort(a, mid, Less(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
|
H A D | robust_against_copying_comparators.pass.cpp | 176 (void)std::partial_sort(first, mid, last, Less<T>(&copies)); assert(copies == 0); in all_the_algorithms()
|
/llvm-project/libcxx/include/__algorithm/ |
H A D | partial_sort.h | 73 inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 void partial_sort( in partial_sort() function 83 partial_sort(_RandomAccessIterator __first, _RandomAccessIterator __middle, _RandomAccessIterator _… in partial_sort() function 84 std::partial_sort(__first, __middle, __last, __less<>()); in partial_sort()
|
H A D | ranges_partial_sort.h | 14 #include <__algorithm/partial_sort.h> 68 inline constexpr auto partial_sort = __partial_sort{};
|
/llvm-project/pstl/test/std/algorithms/alg.sorting/ |
H A D | partial_sort.pass.cpp | 75 std::partial_sort(exp_first, m2, exp_last, compare); in operator ()() 77 std::partial_sort(exec, first, m1, last, compare); in operator ()() 129 partial_sort(exec, iter, iter, iter, non_const(std::less<T>())); in operator ()()
|
/llvm-project/pstl/ |
H A D | README.md | 24 …`partial_sort`, `partial_sort_copy`, `set_difference`, `set_intersection`, `set_symmetric_differen… 29 * For `max_element`, `min_element`, `minmax_element`, `partial_sort`, `partial_sort_copy`, `sort`, … 33 …`partial_sort`, `partial_sort_copy`, `partition_copy`, `remove`, `remove_if`, `rotate`, `sort`, `s…
|
/llvm-project/clang/test/Analysis/ |
H A D | ptr-sort.cpp |
|
/llvm-project/libcxx/test/libcxx/algorithms/alg.sorting/assert.sort.invalid_comparator/ |
H A D | assert.sort.invalid_comparator.pass.cpp | 71 …TEST_LIBCPP_ASSERT_FAILURE(std::partial_sort(copy.begin(), copy.end(), copy.end(), fixture.checked… in check_oob_sort_read() 103 …TEST_LIBCPP_ASSERT_FAILURE(std::ranges::partial_sort(copy, copy.end(), fixture.checked_predicate()… in check_oob_sort_read()
|
/llvm-project/libcxx/test/std/algorithms/ |
H A D | ranges_robust_against_nonbool.compile.pass.cpp | 262 // partial_sort in f() 264 (void)std::ranges::partial_sort(it, it, it, pred2); in f() 265 (void)std::ranges::partial_sort(in, it, pred2); in f() 266 (void)std::ranges::partial_sort(it, it, it, pred2, projection); in f() 267 (void)std::ranges::partial_sort(in, it, pred2, projection); in f()
|
H A D | robust_re_difference_type.compile.pass.cpp | 198 (void)std::partial_sort(first, mid, last); in all_the_algorithms() 199 (void)std::partial_sort(first, mid, last, std::less<void*>()); in all_the_algorithms()
|
H A D | ranges_robust_against_proxy_iterators.pass.cpp | 175 test_mid(std::ranges::partial_sort, in, mid); in run_tests()
|
H A D | ranges_robust_against_omitting_invoke.pass.cpp | 172 test_mid(std::ranges::partial_sort, in, mid, &Foo::binary_pred, &Bar::val); in test_all()
|
H A D | ranges_robust_against_dangling.pass.cpp | 205 dangling_1st(std::ranges::partial_sort, in, mid); in test_all()
|
/llvm-project/libcxx/test/libcxx/fuzzing/ |
H A D | partial_sort.pass.cpp | 25 std::partial_sort(working.begin(), sort_iter, working.end()); in LLVMFuzzerTestOneInput()
|
/llvm-project/libcxx/docs/DesignDocs/ |
H A D | UnspecifiedBehaviorRandomization.rst | 81 * ``std::partial_sort``, there is no guarantee on the order of equal elements and
|
/llvm-project/libcxx/modules/std/ |
H A D | algorithm.inc | 381 using std::partial_sort; 384 using std::ranges::partial_sort;
|
/llvm-project/mlir/lib/Dialect/Mesh/Transforms/ |
H A D | ShardingPropagation.cpp | 262 std::partial_sort( in selectShardingOption()
|
/llvm-project/libcxx/test/std/library/description/conventions/customization.point.object/ |
H A D | niebloid.compile.pass.cpp | 127 static_assert(test(std::ranges::partial_sort, a, a+5));
|
/llvm-project/pstl/include/pstl/internal/ |
H A D | glue_algorithm_defs.h | 363 partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __midd… 368 partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __midd…
|