Home
last modified time | relevance | path

Searched refs:is_heap (Results 1 – 25 of 42) sorted by relevance

12

/external/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/
Dis_heap.pass.cpp26 return std::is_heap(std::begin(ia), std::end(ia)) in test_constexpr()
27 && !std::is_heap(std::begin(ib), std::end(ib)); in test_constexpr()
35 assert(std::is_heap(i1, i1)); in test()
36 assert(std::is_heap(i1, i1+1) == (std::is_heap_until(i1, i1+1) == i1+1)); in test()
37 assert(std::is_heap(RI(i1), RI(i1))); in test()
38 assert(std::is_heap(RI(i1), RI(i1+1)) == (std::is_heap_until(RI(i1), RI(i1+1)) == RI(i1+1))); in test()
42 assert(std::is_heap(i1, i1+2) == (std::is_heap_until(i1, i1+2) == i1+2)); in test()
43 assert(std::is_heap(i2, i2+2) == (std::is_heap_until(i2, i2+2) == i2+2)); in test()
44 assert(std::is_heap(i3, i3+2) == (std::is_heap_until(i3, i3+2) == i3+2)); in test()
52 assert(std::is_heap(i4, i4+3) == (std::is_heap_until(i4, i4+3) == i4+3)); in test()
[all …]
Dis_heap_comp.pass.cpp27 return std::is_heap(std::begin(ia), std::end(ia), std::greater<int>()) in test_constexpr()
28 && !std::is_heap(std::begin(ib), std::end(ib), std::greater<int>()); in test_constexpr()
36 assert(std::is_heap(i1, i1, std::greater<int>())); in test()
37 …assert(std::is_heap(i1, i1+1, std::greater<int>()) == (std::is_heap_until(i1, i1+1, std::greater<i… in test()
38 assert(std::is_heap(RI(i1), RI(i1), std::greater<int>())); in test()
39 …assert(std::is_heap(RI(i1), RI(i1+1), std::greater<int>()) == (std::is_heap_until(RI(i1), RI(i1+1)… in test()
43 …assert(std::is_heap(i1, i1+2, std::greater<int>()) == (std::is_heap_until(i1, i1+2, std::greater<i… in test()
44 …assert(std::is_heap(i2, i2+2, std::greater<int>()) == (std::is_heap_until(i2, i2+2, std::greater<i… in test()
45 …assert(std::is_heap(i3, i3+2, std::greater<int>()) == (std::is_heap_until(i3, i3+2, std::greater<i… in test()
53 …assert(std::is_heap(i4, i4+3, std::greater<int>()) == (std::is_heap_until(i4, i4+3, std::greater<i… in test()
[all …]
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/is.heap/
Dis_heap.pass.cpp26 return std::is_heap(std::begin(ia), std::end(ia)) in test_constexpr()
27 && !std::is_heap(std::begin(ib), std::end(ib)); in test_constexpr()
34 assert(std::is_heap(i1, i1)); in test()
35 assert(std::is_heap(i1, i1+1) == (std::is_heap_until(i1, i1+1) == i1+1)); in test()
38 assert(std::is_heap(i1, i1+2) == (std::is_heap_until(i1, i1+2) == i1+2)); in test()
39 assert(std::is_heap(i2, i2+2) == (std::is_heap_until(i2, i2+2) == i2+2)); in test()
40 assert(std::is_heap(i3, i3+2) == (std::is_heap_until(i3, i3+2) == i3+2)); in test()
48 assert(std::is_heap(i4, i4+3) == (std::is_heap_until(i4, i4+3) == i4+3)); in test()
49 assert(std::is_heap(i5, i5+3) == (std::is_heap_until(i5, i5+3) == i5+3)); in test()
50 assert(std::is_heap(i6, i6+3) == (std::is_heap_until(i6, i6+3) == i6+3)); in test()
[all …]
Dis_heap_comp.pass.cpp27 return std::is_heap(std::begin(ia), std::end(ia), std::greater<int>()) in test_constexpr()
28 && !std::is_heap(std::begin(ib), std::end(ib), std::greater<int>()); in test_constexpr()
35 assert(std::is_heap(i1, i1, std::greater<int>())); in test()
36 …assert(std::is_heap(i1, i1+1, std::greater<int>()) == (std::is_heap_until(i1, i1+1, std::greater<i… in test()
39 …assert(std::is_heap(i1, i1+2, std::greater<int>()) == (std::is_heap_until(i1, i1+2, std::greater<i… in test()
40 …assert(std::is_heap(i2, i2+2, std::greater<int>()) == (std::is_heap_until(i2, i2+2, std::greater<i… in test()
41 …assert(std::is_heap(i3, i3+2, std::greater<int>()) == (std::is_heap_until(i3, i3+2, std::greater<i… in test()
49 …assert(std::is_heap(i4, i4+3, std::greater<int>()) == (std::is_heap_until(i4, i4+3, std::greater<i… in test()
50 …assert(std::is_heap(i5, i5+3, std::greater<int>()) == (std::is_heap_until(i5, i5+3, std::greater<i… in test()
51 …assert(std::is_heap(i6, i6+3, std::greater<int>()) == (std::is_heap_until(i6, i6+3, std::greater<i… in test()
[all …]
/external/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/
Dmake_heap_comp.pass.cpp43 assert(std::is_heap(ia, ia+N, std::greater<int>())); in test()
48 assert(std::is_heap(ia, ia+N, std::greater<int>())); in test()
58 assert(std::is_heap(ia, ia+N, pred)); in test()
68 assert(std::is_heap(ia, ia+N, pred)); in test()
77 assert(std::is_heap(ia, ia+N, pred)); in test()
102 assert(std::is_heap(ia, ia+N, indirect_less())); in main()
Dmake_heap.pass.cpp32 assert(std::is_heap(ia, ia+N)); in test()
37 assert(std::is_heap(RI(ia), RI(ia+N))); in test()
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/
Dmake_heap_comp.pass.cpp43 assert(std::is_heap(ia, ia+N, std::greater<int>())); in test()
53 assert(std::is_heap(ia, ia+N, pred)); in test()
63 assert(std::is_heap(ia, ia+N, pred)); in test()
72 assert(std::is_heap(ia, ia+N, pred)); in test()
97 assert(std::is_heap(ia, ia+N, indirect_less())); in main()
Dmake_heap.pass.cpp30 assert(std::is_heap(ia, ia+N)); in test()
/external/llvm-project/pstl/test/std/algorithms/alg.sorting/alg.heap.operations/
Dis_heap.pass.cpp59 bool expected = is_heap(first, last); in operator ()()
60 bool actual = is_heap(exec, first, last); in operator ()()
65 bool expected = is_heap(first, last, pred); in operator ()()
66 bool actual = is_heap(exec, first, last, pred); in operator ()()
129 is_heap(exec, iter, iter, non_const(std::less<T>())); in operator ()()
/external/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/
Dpush_heap_comp.pass.cpp44 assert(std::is_heap(ia, ia+i, std::greater<int>())); in test()
52 assert(std::is_heap(RI(ia), RI(ia+i), std::greater<int>())); in test()
72 assert(std::is_heap(ia, ia+i, indirect_less())); in main()
Dpush_heap.pass.cpp35 assert(std::is_heap(ia, ia+i)); in test()
43 assert(std::is_heap(RI(ia), RI(ia+i))); in test()
/external/llvm-project/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/
Dpop_heap_comp.pass.cpp45 assert(std::is_heap(ia, ia+i-1, std::greater<int>())); in test()
55 assert(std::is_heap(RI(ia), RI(ia+i-1), std::greater<int>())); in test()
77 assert(std::is_heap(ia, ia+i-1, indirect_less())); in main()
Dpop_heap.pass.cpp35 assert(std::is_heap(ia, ia+i-1)); in test()
46 assert(std::is_heap(RI(ia), RI(ia+i-1))); in test()
/external/llvm-project/libcxx/test/libcxx/fuzzing/
Dpush_heap.pass.cpp26 if (!std::is_heap(working.begin(), iter)) in LLVMFuzzerTestOneInput()
33 if (!std::is_heap(working.begin(), iter)) in LLVMFuzzerTestOneInput()
Dmake_heap.pass.cpp22 if (!std::is_heap(working.begin(), working.end())) in LLVMFuzzerTestOneInput()
Dpop_heap.pass.cpp28 if (!std::is_heap(working.begin(), --iter)) in LLVMFuzzerTestOneInput()
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/push.heap/
Dpush_heap_comp.pass.cpp44 assert(std::is_heap(ia, ia+i, std::greater<int>())); in test()
63 assert(std::is_heap(ia, ia+i, indirect_less())); in main()
Dpush_heap.pass.cpp33 assert(std::is_heap(ia, ia+i)); in test()
/external/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/
Dpop_heap_comp.pass.cpp45 assert(std::is_heap(ia, ia+i-1, std::greater<int>())); in test()
66 assert(std::is_heap(ia, ia+i-1, indirect_less())); in main()
Dpop_heap.pass.cpp33 assert(std::is_heap(ia, ia+i-1)); in test()
/external/libcxx/fuzzing/
Dfuzzing.cpp509 if (!std::is_heap(working.begin(), working.end())) return 1; in make_heap()
522 if (!std::is_heap(working.begin(), iter)) return 1; in push_heap()
528 if (!std::is_heap(working.begin(), iter)) return 2; in push_heap()
545 if (!std::is_heap(working.begin(), --iter)) return 2; in pop_heap()
/external/llvm-project/libcxx/test/libcxx/diagnostics/
Dnodiscard_extensions.verify.cpp134 std::is_heap(std::begin(arr), std::end(arr)); in main()
137 std::is_heap(std::begin(arr), std::end(arr), std::greater<int>()); in main()
Dnodiscard_extensions.pass.cpp77 std::is_heap(std::begin(arr), std::end(arr)); in main()
78 std::is_heap(std::begin(arr), std::end(arr), std::greater<int>()); in main()
/external/llvm-project/clang-tools-extra/clangd/
DQuality.h203 assert(std::is_heap(Heap.begin(), Heap.end(), Greater)); in push()
/external/rust/crates/tinyvec/tests/
Dtinyvec.rs328 assert!(tv.is_heap()); in TinyVec_move_to_heap_and_shrink()
337 assert!(tv.is_heap()); in TinyVec_move_to_heap_and_shrink()

12