Home
last modified time | relevance | path

Searched refs:sort_heap (Results 1 – 25 of 33) sorted by relevance

12

/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/sort.heap/
H A Dranges_sort_heap.pass.cpp17 // ranges::sort_heap(I first, S last, Comp comp = {}, Proj proj = {}); // since C++20
22 // ranges::sort_heap(R&& r, Comp comp = {}, Proj proj = {}); // since C++20
79 std::same_as<Iter> decltype(auto) last = std::ranges::sort_heap(b, e); in test_one()
89 std::same_as<Iter> decltype(auto) last = std::ranges::sort_heap(range); in test_one()
133 auto last = std::ranges::sort_heap(in.begin(), in.end(), comp); in test()
140 auto last = std::ranges::sort_heap(in, comp); in test()
156 auto last = std::ranges::sort_heap(in.begin(), in.end(), {}, &A::a); in test()
162 auto last = std::ranges::sort_heap(in, {}, &A::a); in test()
182 auto last = std::ranges::sort_heap(in.begin(), in.end(), &A::comparator, &A::projection); in test()
188 auto last = std::ranges::sort_heap(i in test()
[all...]
H A Dsort_heap.pass.cpp33 std::sort_heap(Iter(work), Iter(work+n)); in test()
42 std::sort_heap(Iter(input), Iter(input + 5)); in test()
H A Dsort_heap_comp.pass.cpp33 std::sort_heap(Iter(work), Iter(work+n), std::greater<T>()); in test()
42 std::sort_heap(Iter(input), Iter(input + 5), std::greater<T>()); in test()
H A Dcomplexity.pass.cpp14 // void sort_heap(Iter first, Iter last);
70 std::sort_heap(first, last); in main()
/llvm-project/libcxx/test/libcxx/algorithms/alg.sorting/assert.sort.invalid_comparator/
H A Dassert.sort.invalid_comparator.pass.cpp66 … TEST_LIBCPP_ASSERT_FAILURE(std::sort_heap(copy.begin(), copy.end(), fixture.checked_predicate()), in check_oob_sort_read()
99 …std::ranges::sort_heap(copy, fixture.checked_predicate()), "Comparator does not induce a strict we… in check_oob_sort_read()
156 …std::sort_heap(floats.begin(), floats.end()), "Your comparator is not a valid strict-weak ordering… in check_nan_floats()
164 …std::ranges::sort_heap(floats, std::less()), "Your comparator is not a valid strict-weak ordering"… in check_nan_floats()
174 TEST_LIBCPP_ASSERT_FAILURE(std::sort_heap(v.begin(), v.end(), std::greater_equal<int>()), in check_irreflexive()
182 …std::ranges::sort_heap(v, std::greater_equal<int>()), "Comparator does not induce a strict weak or… in check_irreflexive()
/llvm-project/libcxx/include/__algorithm/
H A Dsort_heap.h46 sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp) { in sort_heap() function
55 sort_heap(_RandomAccessIterator __first, _RandomAccessIterator __last) { in sort_heap() function
56 std::sort_heap(std::move(__first), std::move(__last), __less<>()); in sort_heap()
H A Dranges_sort_heap.h14 #include <__algorithm/sort_heap.h>
71 inline constexpr auto sort_heap = __sort_heap{};
/llvm-project/libcxx/benchmarks/algorithms/
H A Dranges_sort_heap.bench.cpp
H A Dsort_heap.bench.cpp
H A Dranges_make_heap_then_sort_heap.bench.cpp
H A Dmake_heap_then_sort_heap.bench.cpp
/llvm-project/libcxx/test/libcxx/algorithms/
H A Drobust_against_cpp20_hostile_iterators.compile.pass.cpp213 (void) std::sort_heap(it, it); in test()
214 (void) std::sort_heap(it, it, pred); in test()
H A Dranges_robust_against_copying_comparators.pass.cpp224 (void)std::ranges::sort_heap(first, last, Less(&copies)); assert(copies == 0); in all_the_algorithms()
225 (void)std::ranges::sort_heap(a, Less(&copies)); assert(copies == 0); in all_the_algorithms()
H A Dranges_robust_against_copying_projections.pass.cpp229 (void)std::ranges::sort_heap(first, last, Less(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
230 (void)std::ranges::sort_heap(a, Less(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
/llvm-project/libcxx/test/std/algorithms/
H A Drobust_against_adl.compile.pass.cpp203 (void)std::sort_heap(first, last); in all_the_algorithms()
204 (void)std::sort_heap(first, last, std::less<void*>()); in all_the_algorithms()
H A Drobust_re_difference_type.compile.pass.cpp241 (void)std::sort_heap(first, last); in all_the_algorithms()
242 (void)std::sort_heap(first, last, std::less<void*>()); in all_the_algorithms()
H A Dranges_robust_against_proxy_iterators.pass.cpp182 test(std::ranges::sort_heap, in); in run_tests()
H A Dranges_robust_against_omitting_invoke.pass.cpp179 test(std::ranges::sort_heap, in, &Foo::binary_pred, &Bar::val); in test_all()
H A Dranges_robust_against_dangling.pass.cpp213 dangling_1st(std::ranges::sort_heap, in); in test_all()
/llvm-project/clang-tools-extra/clangd/
H A DQuality.h217 std::sort_heap(Heap.begin(), Heap.end(), Greater); in items()
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/modernize/
H A Duse-ranges.rst93 ``std::sort_heap``,
/llvm-project/clang-tools-extra/docs/clang-tidy/checks/boost/
H A Duse-ranges.rst92 ``std::sort_heap``,
/llvm-project/libcxx/modules/std/
H A Dalgorithm.inc530 using std::sort_heap;
533 using std::ranges::sort_heap;
/llvm-project/libcxx/test/std/library/description/conventions/customization.point.object/
H A Dniebloid.compile.pass.cpp156 static_assert(test(std::ranges::sort_heap, a));
/llvm-project/libcxx/benchmarks/
H A DCMakeLists.txt

12