Home
last modified time | relevance | path

Searched refs:partial_sort (Results 1 – 25 of 34) sorted by relevance

12

/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.sort/partial.sort/
H A Dranges_partial_sort.pass.cpp40 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 Dpartial_sort.pass.cpp30 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 Dpartial_sort_comp.pass.cpp32 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 Dpartial_sort_stability.pass.cpp50 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 Drobust_against_cpp20_hostile_iterators.compile.pass.cpp169 (void) std::partial_sort(it, it, it); in test()
170 (void) std::partial_sort(it, it, it, pred); in test()
H A Dranges_robust_against_copying_comparators.pass.cpp186 (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 Dranges_robust_against_copying_projections.pass.cpp183 (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 Drobust_against_copying_comparators.pass.cpp176 (void)std::partial_sort(first, mid, last, Less<T>(&copies)); assert(copies == 0); in all_the_algorithms()
/llvm-project/libcxx/include/__algorithm/
H A Dpartial_sort.h73 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 Dranges_partial_sort.h14 #include <__algorithm/partial_sort.h>
68 inline constexpr auto partial_sort = __partial_sort{};
/llvm-project/pstl/test/std/algorithms/alg.sorting/
H A Dpartial_sort.pass.cpp75 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 DREADME.md24 …`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 Dptr-sort.cpp
/llvm-project/libcxx/test/libcxx/algorithms/alg.sorting/assert.sort.invalid_comparator/
H A Dassert.sort.invalid_comparator.pass.cpp71 …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 Dranges_robust_against_nonbool.compile.pass.cpp262 // 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 Drobust_re_difference_type.compile.pass.cpp198 (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 Dranges_robust_against_proxy_iterators.pass.cpp175 test_mid(std::ranges::partial_sort, in, mid); in run_tests()
H A Dranges_robust_against_omitting_invoke.pass.cpp172 test_mid(std::ranges::partial_sort, in, mid, &Foo::binary_pred, &Bar::val); in test_all()
H A Dranges_robust_against_dangling.pass.cpp205 dangling_1st(std::ranges::partial_sort, in, mid); in test_all()
/llvm-project/libcxx/test/libcxx/fuzzing/
H A Dpartial_sort.pass.cpp25 std::partial_sort(working.begin(), sort_iter, working.end()); in LLVMFuzzerTestOneInput()
/llvm-project/libcxx/docs/DesignDocs/
H A DUnspecifiedBehaviorRandomization.rst81 * ``std::partial_sort``, there is no guarantee on the order of equal elements and
/llvm-project/libcxx/modules/std/
H A Dalgorithm.inc381 using std::partial_sort;
384 using std::ranges::partial_sort;
/llvm-project/mlir/lib/Dialect/Mesh/Transforms/
H A DShardingPropagation.cpp262 std::partial_sort( in selectShardingOption()
/llvm-project/libcxx/test/std/library/description/conventions/customization.point.object/
H A Dniebloid.compile.pass.cpp127 static_assert(test(std::ranges::partial_sort, a, a+5));
/llvm-project/pstl/include/pstl/internal/
H A Dglue_algorithm_defs.h363 partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __midd…
368 partial_sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __midd…

12