/external/libcxx/test/algorithms/alg.sorting/alg.heap.operations/is.heap/ |
D | is_heap_comp.pass.cpp | 24 assert(std::is_heap(i1, i1, std::greater<int>())); in test() 25 …assert(std::is_heap(i1, i1+1, std::greater<int>()) == (std::is_heap_until(i1, i1+1, std::greater<i… in test() 28 …assert(std::is_heap(i1, i1+2, std::greater<int>()) == (std::is_heap_until(i1, i1+2, std::greater<i… in test() 29 …assert(std::is_heap(i2, i2+2, std::greater<int>()) == (std::is_heap_until(i2, i2+2, std::greater<i… in test() 30 …assert(std::is_heap(i3, i3+2, std::greater<int>()) == (std::is_heap_until(i3, i3+2, std::greater<i… in test() 38 …assert(std::is_heap(i4, i4+3, std::greater<int>()) == (std::is_heap_until(i4, i4+3, std::greater<i… in test() 39 …assert(std::is_heap(i5, i5+3, std::greater<int>()) == (std::is_heap_until(i5, i5+3, std::greater<i… in test() 40 …assert(std::is_heap(i6, i6+3, std::greater<int>()) == (std::is_heap_until(i6, i6+3, std::greater<i… in test() 41 …assert(std::is_heap(i7, i7+3, std::greater<int>()) == (std::is_heap_until(i7, i7+3, std::greater<i… in test() 42 …assert(std::is_heap(i8, i8+3, std::greater<int>()) == (std::is_heap_until(i8, i8+3, std::greater<i… in test() [all …]
|
D | is_heap_until_comp.pass.cpp | 24 assert(std::is_heap_until(i1, i1, std::greater<int>()) == i1); in test() 25 assert(std::is_heap_until(i1, i1+1, std::greater<int>()) == i1+1); in test() 28 assert(std::is_heap_until(i1, i1+2, std::greater<int>()) == i1+2); in test() 29 assert(std::is_heap_until(i2, i2+2, std::greater<int>()) == i2+2); in test() 30 assert(std::is_heap_until(i3, i3+2, std::greater<int>()) == i3+1); in test() 38 assert(std::is_heap_until(i4, i4+3, std::greater<int>()) == i4+3); in test() 39 assert(std::is_heap_until(i5, i5+3, std::greater<int>()) == i5+3); in test() 40 assert(std::is_heap_until(i6, i6+3, std::greater<int>()) == i6+3); in test() 41 assert(std::is_heap_until(i7, i7+3, std::greater<int>()) == i7+3); in test() 42 assert(std::is_heap_until(i8, i8+3, std::greater<int>()) == i8+1); in test() [all …]
|
/external/chromium_org/v8/test/mjsunit/ |
D | compare-objects.js | 49 function test(a, b, less, greater) { argument 58 assertEquals(gt(a, b), greater); 59 assertEquals(lt(b, a), greater); 67 var greater = obj1 > obj2; variable 69 test(obj1, obj2, less, greater); 70 test(obj1, obj2, less, greater); 71 test(obj1, obj2, less, greater); 73 test(obj1, obj2, less, greater); 74 test(obj1, obj2, less, greater); 77 test(obj1, obj2, less, greater); [all …]
|
/external/libcxx/test/algorithms/alg.sorting/alg.sort/is.sorted/ |
D | is_sorted_comp.pass.cpp | 31 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 37 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 42 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 47 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 52 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 58 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 63 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 68 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 73 assert(!std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() 78 assert(std::is_sorted(Iter(a), Iter(a+sa), std::greater<int>())); in test() [all …]
|
D | is_sorted_until_comp.pass.cpp | 30 assert(std::is_sorted_until(Iter(a), Iter(a), std::greater<int>()) == Iter(a)); in test() 31 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 37 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 42 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test() 47 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 52 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 58 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+sa)); in test() 63 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+2)); in test() 68 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test() 73 assert(std::is_sorted_until(Iter(a), Iter(a+sa), std::greater<int>()) == Iter(a+1)); in test() [all …]
|
/external/libcxx/test/algorithms/alg.sorting/alg.min.max/ |
D | minmax_init_list_comp.pass.cpp | 23 assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 24 assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 25 assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 26 assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 27 assert((std::minmax({3, 1, 2}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 28 assert((std::minmax({3, 2, 1}, std::greater<int>()) == std::pair<int, int>(3, 1))); in main() 31 static_assert((std::minmax({1, 2, 3}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main() 32 static_assert((std::minmax({1, 3, 2}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main() 33 static_assert((std::minmax({2, 1, 3}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main() 34 static_assert((std::minmax({2, 3, 1}, std::greater<int>()) == std::pair<int, int>(3, 1)), ""); in main() [all …]
|
D | min_init_list_comp.pass.cpp | 23 int i = std::min({2, 3, 1}, std::greater<int>()); in main() 25 i = std::min({2, 1, 3}, std::greater<int>()); in main() 27 i = std::min({3, 1, 2}, std::greater<int>()); in main() 29 i = std::min({3, 2, 1}, std::greater<int>()); in main() 31 i = std::min({1, 2, 3}, std::greater<int>()); in main() 33 i = std::min({1, 3, 2}, std::greater<int>()); in main() 37 static_assert(std::min({1, 3, 2}, std::greater<int>()) == 3, ""); in main() 38 static_assert(std::min({2, 1, 3}, std::greater<int>()) == 3, ""); in main() 39 static_assert(std::min({3, 2, 1}, std::greater<int>()) == 3, ""); in main()
|
D | max_init_list_comp.pass.cpp | 23 int i = std::max({2, 3, 1}, std::greater<int>()); in main() 25 i = std::max({2, 1, 3}, std::greater<int>()); in main() 27 i = std::max({3, 1, 2}, std::greater<int>()); in main() 29 i = std::max({3, 2, 1}, std::greater<int>()); in main() 31 i = std::max({1, 2, 3}, std::greater<int>()); in main() 33 i = std::max({1, 3, 2}, std::greater<int>()); in main() 37 static_assert(std::max({1, 3, 2}, std::greater<int>()) == 1, ""); in main() 38 static_assert(std::max({2, 1, 3}, std::greater<int>()) == 1, ""); in main() 39 static_assert(std::max({3, 2, 1}, std::greater<int>()) == 1, ""); in main()
|
D | max_comp.pass.cpp | 33 test(x, y, std::greater<int>(), x); in main() 34 test(y, x, std::greater<int>(), y); in main() 39 test(x, y, std::greater<int>(), x); in main() 40 test(y, x, std::greater<int>(), x); in main() 45 test(x, y, std::greater<int>(), y); in main() 46 test(y, x, std::greater<int>(), y); in main() 52 static_assert(std::max(x, y, std::greater<int>()) == y, "" ); in main() 53 static_assert(std::max(y, x, std::greater<int>()) == y, "" ); in main()
|
D | min_comp.pass.cpp | 33 test(x, y, std::greater<int>(), x); in main() 34 test(y, x, std::greater<int>(), y); in main() 39 test(x, y, std::greater<int>(), y); in main() 40 test(y, x, std::greater<int>(), y); in main() 45 test(x, y, std::greater<int>(), x); in main() 46 test(y, x, std::greater<int>(), x); in main() 52 static_assert(std::min(x, y, std::greater<int>()) == x, "" ); in main() 53 static_assert(std::min(y, x, std::greater<int>()) == x, "" ); in main()
|
D | minmax_comp.pass.cpp | 36 test(x, y, std::greater<int>(), x, y); in main() 37 test(y, x, std::greater<int>(), y, x); in main() 42 test(x, y, std::greater<int>(), y, x); in main() 43 test(y, x, std::greater<int>(), y, x); in main() 48 test(x, y, std::greater<int>(), x, y); in main() 49 test(y, x, std::greater<int>(), x, y); in main() 57 constexpr auto p1 = std::minmax(x, y, std::greater<>()); in main() 60 constexpr auto p2 = std::minmax(y, x, std::greater<>()); in main()
|
/external/clang/test/SemaCXX/ |
D | namespace.cpp | 75 struct greater {}; struct 78 extern op::greater const greater; 84 op::greater const greater = op::greater(); variable 89 { numeric::greater(l, r); } in f()
|
/external/stlport/test/unit/ |
D | heap_test.cpp | 57 make_heap(numbers, numbers + 6, greater<int>()); in mkheap1() 60 pop_heap(numbers, numbers + 6, greater<int>()); in mkheap1() 62 pop_heap(numbers, numbers + 5, greater<int>()); in mkheap1() 64 pop_heap(numbers, numbers + 4, greater<int>()); in mkheap1() 66 pop_heap(numbers, numbers + 3, greater<int>()); in mkheap1() 68 pop_heap(numbers, numbers + 2, greater<int>()); in mkheap1() 97 make_heap(v.begin(), v.end(), greater<int>()); in pheap2() 100 push_heap(v.begin(), v.end(), greater<int>()); in pheap2() 102 sort_heap(v.begin(), v.end(), greater<int>()); in pheap2()
|
/external/valgrind/main/none/tests/s390x/ |
D | cgrj.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
D | cgij.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
D | cij.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
D | clrj.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
D | clgrj.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
D | clgij.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
D | crj.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
D | clij.stdout.exp | 9 greater than 11 greater or equal 12 greater or equal 15 greater than 17 greater or equal 18 greater or equal
|
/external/libcxx/test/algorithms/alg.sorting/alg.binary.search/equal.range/ |
D | equal_range_comp.pass.cpp | 29 std::pair<Iter, Iter> i = std::equal_range(first, last, value, std::greater<int>()); in test() 31 assert(std::greater<int>()(*j, value)); in test() 33 assert(!std::greater<int>()(*j, value)); in test() 35 assert(!std::greater<int>()(value, *j)); in test() 37 assert(std::greater<int>()(value, *j)); in test() 54 std::sort(v.begin(), v.end(), std::greater<int>()); in test()
|
/external/libcxx/test/utilities/function.objects/comparisons/ |
D | greater.pass.cpp | 20 typedef std::greater<int> F; in main() 27 typedef std::greater<> F2; in main() 37 constexpr bool foo = std::greater<int> () (36, 36); in main() 40 constexpr bool bar = std::greater<> () (36.0, 36); in main()
|
/external/clang/lib/Parse/ |
D | ParseTemplate.cpp | 307 if (!Tok.is(tok::greater) && !Tok.is(tok::greatergreater)) in ParseTemplateParameters() 316 Tok.setKind(tok::greater); in ParseTemplateParameters() 319 } else if (!TryConsumeToken(tok::greater, RAngleLoc) && Failed) { in ParseTemplateParameters() 320 Diag(Tok.getLocation(), diag::err_expected) << tok::greater; in ParseTemplateParameters() 344 SkipUntil(tok::comma, tok::greater, tok::greatergreater, in ParseTemplateParameterList() 351 } else if (Tok.is(tok::greater) || Tok.is(tok::greatergreater)) { in ParseTemplateParameterList() 359 SkipUntil(tok::comma, tok::greater, tok::greatergreater, in ParseTemplateParameterList() 376 case tok::greater: in isStartOfTemplateTypeParameter() 393 case tok::greater: in isStartOfTemplateTypeParameter() 420 case tok::greater: in isStartOfTemplateTypeParameter() [all …]
|
/external/libcxx/test/algorithms/alg.sorting/alg.binary.search/lower.bound/ |
D | lower_bound_comp.pass.cpp | 28 Iter i = std::lower_bound(first, last, value, std::greater<int>()); in test() 30 assert(std::greater<int>()(*j, value)); in test() 32 assert(!std::greater<int>()(*j, value)); in test() 49 std::sort(v.begin(), v.end(), std::greater<int>()); in test()
|