Home
last modified time | relevance | path

Searched refs:max_element (Results 1 – 25 of 91) sorted by relevance

1234

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.min.max/
H A Dranges.max_element.pass.cpp33 concept HasMaxElement = requires (T t) { std::ranges::max_element(t); };
48 std::same_as<Iter> auto it = std::ranges::max_element(first, last); in test_iterators()
59 std::same_as<Iter> auto it = std::ranges::max_element(std::forward<Range>(rng)); in test_range()
73 std::same_as<It> auto it = std::ranges::max_element(It(first), It(last)); in test()
83 std::same_as<It> auto it = std::ranges::max_element(range); in test()
89 std::same_as<It> auto it = std::ranges::max_element(range); in test()
109 int* ret = std::ranges::max_element(std::views::all(a)); in test_borrowed_range_and_sentinel()
116 int* ret = std::ranges::max_element(a, std::ranges::greater{}); in test_comparator()
148 assert(std::ranges::max_element(arr) == arr); in test_immobile()
149 assert(std::ranges::max_element(arr, arr + 3) == arr); in test_immobile()
[all …]
H A Dmax_element_comp.pass.cpp30 Iter i = std::max_element(first, last, std::greater<int>()); in test()
67 assert(first == std::max_element(first, last, p)); in test_eq0()
89 constexpr auto p = std::max_element(il, il+8, less()); in constexpr_test()
H A Dmax_element.pass.cpp29 Iter i = std::max_element(first, last); in test()
70 constexpr auto p = std::max_element(il,il+8); in constexpr_test()
H A Drequires_forward_iterator.fail.cpp29 std::max_element(Iter(b), Iter(e)); in main()
/llvm-project-15.0.7/libcxx/include/__algorithm/
H A Dmax_element.h41 max_element(_ForwardIterator __first, _ForwardIterator __last, _Compare __comp) in max_element() function
50 max_element(_ForwardIterator __first, _ForwardIterator __last) in max_element() function
52 return _VSTD::max_element(__first, __last, in max_element()
H A Dmax.h63 return *_VSTD::max_element(__t.begin(), __t.end(), __less<_Tp>()); in max()
H A Dranges_max_element.h53 inline constexpr auto max_element = __max_element::__fn{};
/llvm-project-15.0.7/pstl/test/std/algorithms/alg.sorting/alg.min.max/
H A Dminmax_element.pass.cpp45 const Iterator expect = std::max_element(begin, end); in operator ()()
46 const Iterator result = std::max_element(exec, begin, end); in operator ()()
47 const Iterator result_pred = std::max_element(exec, begin, end, std::less<T>()); in operator ()()
170 max_element(exec, iter, iter, non_const(std::less<T>())); in operator ()()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.sorting/alg.heap.operations/pop.heap/
H A Dpop_heap.pass.cpp33 assert(std::max_element(work, work+i-1) == work); in test()
/llvm-project-15.0.7/mlir/lib/Dialect/Affine/Transforms/
H A DLoopCoalescing.cpp65 *std::max_element(std::next(operandsDefinedAbove.begin(), start), in walkLoop()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ConfusableTable/
H A DBuildConfusableTable.cpp60 std::max_element(Entries.begin(), Entries.end(), in main()
/llvm-project-15.0.7/llvm/utils/FileCheck/
H A DFileCheck.cpp747 : *std::max_element(DumpInputs.begin(), DumpInputs.end()); in main()
754 *std::max_element(DumpInputFilters.begin(), DumpInputFilters.end()); in main()
757 : *std::max_element(DumpInputContexts.begin(), in main()
/llvm-project-15.0.7/libcxx/test/libcxx/algorithms/
H A Drobust_against_cpp20_hostile_iterators.compile.pass.cpp145 (void) std::max_element(it, it); in test()
146 (void) std::max_element(it, it, pred); in test()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DLatencyBenchmarkRunner.cpp56 return *std::max_element(Values.begin(), Values.end()); in findMax()
/llvm-project-15.0.7/mlir/lib/Reducer/
H A DReductionNode.cpp77 auto maxElement = std::max_element( in generateNewVariants()
/llvm-project-15.0.7/llvm/tools/llvm-pdbutil/
H A DMinimalTypeDumper.cpp309 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord()
324 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord()
494 auto Max = std::max_element(Indices.begin(), Indices.end()); in visitKnownRecord()
/llvm-project-15.0.7/libcxx/test/std/algorithms/
H A Drobust_against_adl.compile.pass.cpp122 (void)std::max_element(first, last); in all_the_algorithms()
123 (void)std::max_element(first, last, std::less<void*>()); in all_the_algorithms()
H A Drobust_re_difference_type.compile.pass.cpp159 (void)std::max_element(first, last); in all_the_algorithms()
160 (void)std::max_element(first, last, std::less<void*>()); in all_the_algorithms()
/llvm-project-15.0.7/libcxx/test/libcxx/diagnostics/
H A Dnodiscard_extensions.pass.cpp102 std::max_element(std::begin(arr), std::end(arr)); in test_algorithms()
103 std::max_element(std::begin(arr), std::end(arr), std::greater<int>()); in test_algorithms()
H A Dnodiscard_extensions.verify.cpp185 std::max_element(std::begin(arr), std::end(arr)); in test_algorithms()
188 std::max_element(std::begin(arr), std::end(arr), std::greater<int>()); in test_algorithms()
/llvm-project-15.0.7/pstl/
H A DREADME.md29 * For `max_element`, `min_element`, `minmax_element`, `partial_sort`, `partial_sort_copy`, `sort`, …
/llvm-project-15.0.7/compiler-rt/test/tsan/
H A Dreal_deadlock_detector_stress_test.cpp51 max_locked = *std::max_element(locked.begin(), locked.end()); in Thread()
/llvm-project-15.0.7/llvm/tools/llvm-mca/Views/
H A DSchedulerStatistics.cpp109 std::max_element(IssueWidthPerCycle.begin(), IssueWidthPerCycle.end()); in printSchedulerStats()
/llvm-project-15.0.7/libc/benchmarks/automemcpy/lib/
H A DResultAnalyzerMain.cpp116 const size_t Max = *std::max_element(GH.begin(), GH.end()); in Serialize()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousEnumUsageCheck.cpp75 auto EnumConst = std::max_element( in isMaxValAllBitSetLiteral()

1234