Home
last modified time | relevance | path

Searched refs:replace_if (Results 1 – 25 of 30) sorted by relevance

12

/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.replace/
H A Dranges.replace_if.pass.cpp50 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 Dreplace_if.pass.cpp32 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 Dreplace.pass.cpp80 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 Dreplace_if.h23 replace_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred, const _Tp& __new_v… in replace_if() function
H A Dranges_replace_if.h69 inline constexpr auto replace_if = __replace_if::__fn{};
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DBranchProbability.h228 std::replace_if(Begin, End, in normalizeProbabilities()
/llvm-project-15.0.7/libcxx/test/libcxx/algorithms/
H A Dranges_robust_against_copying_comparators.pass.cpp196 (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 Dranges_robust_against_copying_projections.pass.cpp187 … (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 Drobust_against_cpp20_hostile_iterators.compile.pass.cpp181 (void) std::replace_if(it, it, pred, 0); in test()
H A Drobust_against_copying_comparators.pass.cpp185 (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 Dranges_robust_against_nonbool_predicates.pass.cpp116 test(std::ranges::replace_if, in, unary_pred, x); in test_all()
H A Dranges_robust_against_proxy_iterators.pass.cpp129 test(std::ranges::replace_if, in, unary_pred, x); in run_tests()
H A Drobust_against_adl.compile.pass.cpp177 (void)std::replace_if(first, last, UnaryTrue(), value); in all_the_algorithms()
H A Dranges_robust_against_dangling.pass.cpp154 dangling_1st(std::ranges::replace_if, in, std::identity{}, x); in test_all()
H A Dranges_robust_against_omitting_invoke.pass.cpp136 test(std::ranges::replace_if, in, &Foo::unary_pred, a, &Bar::val); in test_all()
H A Drobust_re_difference_type.compile.pass.cpp212 (void)std::replace_if(first, last, UnaryTrue(), value); in all_the_algorithms()
H A Drobust_against_proxy_iterators_lifetime_bugs.pass.cpp715 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 Dniebloid.compile.pass.cpp127 static_assert(test(std::ranges::replace_if, a, odd, 43));
/llvm-project-15.0.7/libcxx/docs/Status/
H A DRangesAlgorithms.csv53 Write,replace_if,Nikolas Klauser,`D126283 <https://llvm.org/D126283>`_,✅
/llvm-project-15.0.7/pstl/include/pstl/internal/
H A Dglue_algorithm_impl.h338 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 Dglue_algorithm_defs.h173 replace_if(_ExecutionPolicy&& __exec, _ForwardIterator __first, _ForwardIterator __last, _UnaryPred…
/llvm-project-15.0.7/libcxx/include/
H A DCMakeLists.txt164 __algorithm/replace_if.h
H A Dalgorithm588 …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 Dmodule.modulemap.in409 module replace_if { private header "__algorithm/replace_if.h" }
/llvm-project-15.0.7/llvm/utils/gn/secondary/libcxx/include/
H A DBUILD.gn227 "__algorithm/replace_if.h",

12