| /llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/ |
| H A D | ranges.replace_if.pass.cpp | 50 concept HasReplaceR = requires(Range range) { std::ranges::replace_if(range, FalsePredicate{}, 0); … 65 std::same_as<Iter> auto ret = std::ranges::replace_if(Iter(a.data()), Sent(Iter(a.data() + N)), in test() 74 std::same_as<Iter> auto ret = std::ranges::replace_if(range, pred, val); in test() 110 std::ranges::replace_if(a, a + 4, [](int i) { return i == 3; }, S{0}, &S::i); in test() 114 std::ranges::replace_if(a, [](int i) { return i == 3; }, S{0}, &S::i); in test() 127 auto ret = std::ranges::replace_if(std::begin(a), std::end(a), &S::check, S{2}, &S::identity); in test() 132 auto ret = std::ranges::replace_if(a, &S::check, S{2}, &S::identity); in test() 145 auto ret = std::ranges::replace_if(a, [](int) { return BooleanTestable{false}; }, 2); in test() 152 std::ranges::replace_if(std::array {1, 2, 3, 4}, [](int) { return false; }, 1); in test() 162 auto ret = std::ranges::replace_if(a, a + 5, pred, 1, proj); in test() [all …]
|
| H A D | replace_if.pass.cpp | 32 std::replace_if(std::begin(ia), std::end(ia), equalToTwo, 5); in test_constexpr() 45 std::replace_if(Iter(ia), Iter(ia+sa), equalToTwo, 5); in test()
|
| /llvm-project-15.0.7/pstl/test/std/algorithms/alg.modifying.operations/ |
| H A D | replace.pass.cpp | 80 replace_if(expected_b, expected_e, pred, value); in operator ()() 81 replace_if(exec, actual_b, actual_e, pred, value); in operator ()() 144 invoke_if(exec, [&]() { replace_if(exec, iter, iter, non_const(is_even), T(0)); }); in operator ()()
|
| /llvm-project-15.0.7/libcxx/include/__algorithm/ |
| H A D | replace_if.h | 23 replace_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, const _Tp& __new_v… in replace_if() function
|
| H A D | ranges_replace_if.h | 69 inline constexpr auto replace_if = __replace_if::__fn{};
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | BranchProbability.h | 228 std::replace_if(Begin, End, in normalizeProbabilities()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/algorithms/ |
| H A D | ranges_robust_against_copying_comparators.pass.cpp | 196 (void)std::ranges::replace_if(first, last, UnaryTrue(&copies), value); assert(copies == 0); in all_the_algorithms() 197 (void)std::ranges::replace_if(a, UnaryTrue(&copies), value); assert(copies == 0); in all_the_algorithms()
|
| H A D | ranges_robust_against_copying_projections.pass.cpp | 187 … (void)std::ranges::replace_if(first, last, UnaryTrue(), T(), Proj(&copies)); assert(copies == 0); in all_the_algorithms() 188 (void)std::ranges::replace_if(a, UnaryTrue(), T(), Proj(&copies)); assert(copies == 0); in all_the_algorithms()
|
| H A D | robust_against_cpp20_hostile_iterators.compile.pass.cpp | 181 (void) std::replace_if(it, it, pred, 0); in test()
|
| H A D | robust_against_copying_comparators.pass.cpp | 185 (void)std::replace_if(first, last, UnaryTrue<T>(&copies), value); assert(copies == 0); in all_the_algorithms()
|
| /llvm-project-15.0.7/libcxx/test/std/algorithms/ |
| H A D | ranges_robust_against_nonbool_predicates.pass.cpp | 116 test(std::ranges::replace_if, in, unary_pred, x); in test_all()
|
| H A D | ranges_robust_against_proxy_iterators.pass.cpp | 129 test(std::ranges::replace_if, in, unary_pred, x); in run_tests()
|
| H A D | robust_against_adl.compile.pass.cpp | 177 (void)std::replace_if(first, last, UnaryTrue(), value); in all_the_algorithms()
|
| H A D | ranges_robust_against_dangling.pass.cpp | 154 dangling_1st(std::ranges::replace_if, in, std::identity{}, x); in test_all()
|
| H A D | ranges_robust_against_omitting_invoke.pass.cpp | 136 test(std::ranges::replace_if, in, &Foo::unary_pred, a, &Bar::val); in test_all()
|
| H A D | robust_re_difference_type.compile.pass.cpp | 212 (void)std::replace_if(first, last, UnaryTrue(), value); in all_the_algorithms()
|
| H A D | robust_against_proxy_iterators_lifetime_bugs.pass.cpp | 715 test(simple_in, [&](I b, I e) { std::replace_if(b, e, is_neg, y); }); in test()
|
| /llvm-project-15.0.7/libcxx/test/std/library/description/conventions/customization.point.object/ |
| H A D | niebloid.compile.pass.cpp | 127 static_assert(test(std::ranges::replace_if, a, odd, 43));
|
| /llvm-project-15.0.7/libcxx/docs/Status/ |
| H A D | RangesAlgorithms.csv | 53 Write,replace_if,Nikolas Klauser,`D126283 <https://llvm.org/D126283>`_,✅
|
| /llvm-project-15.0.7/pstl/include/pstl/internal/ |
| H A D | glue_algorithm_impl.h | 338 replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPred… in replace_if() function 360 std::replace_if(std::forward<_ExecutionPolicy>(__exec), __first, __last, in replace()
|
| H A D | glue_algorithm_defs.h | 173 replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPred…
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | CMakeLists.txt | 164 __algorithm/replace_if.h
|
| H A D | algorithm | 588 …constexpr I ranges::replace_if(I first, S last, Pred pred, const T& new_value, Proj proj = {}); //… 594 …ranges::replace_if(R&& r, Pred pred, const T& new_value, Proj proj = {}); // s… 1269 replace_if(ForwardIterator first, ForwardIterator last, Predicate pred, const T& new_value); 1875 #include <__algorithm/replace_if.h>
|
| H A D | module.modulemap.in | 409 module replace_if { private header "__algorithm/replace_if.h" }
|
| /llvm-project-15.0.7/llvm/utils/gn/secondary/libcxx/include/ |
| H A D | BUILD.gn | 227 "__algorithm/replace_if.h",
|