Home
last modified time | relevance | path

Searched refs:remove_if (Results 1 – 25 of 94) sorted by relevance

1234

/llvm-project-15.0.7/libcxx/test/std/containers/sequences/list/list.ops/
H A Dremove_if.pass.cpp52 ASSERT_SAME_TYPE(L::size_type, decltype(c.remove_if(std::ref(cp)))); in main()
53 assert(c.remove_if(std::ref(cp)) == 2); in main()
55 ASSERT_SAME_TYPE(void, decltype(c.remove_if(std::ref(cp)))); in main()
56 c.remove_if(std::ref(cp)); in main()
67 assert(c.remove_if(std::ref(cp)) == 2); in main()
69 c.remove_if(std::ref(cp)); in main()
78 c.remove_if(std::ref(c.front())); in main()
94 assert(c.remove_if(std::ref(cp)) == 2); in main()
96 c.remove_if(std::ref(cp)); in main()
/llvm-project-15.0.7/libcxx/test/std/algorithms/alg.modifying.operations/alg.remove/
H A Dranges.remove_if.pass.cpp37 concept HasRemoveIfIt = requires(Iter first, Sent last) { std::ranges::remove_if(first, last, False…
47 concept HasRemoveIfR = requires(Range range) { std::ranges::remove_if(range, FalsePredicate{}); };
72 … std::ranges::remove_if(std::move(first), std::move(last), [&](int i) { return i < d.cutoff; }); in test()
83 …std::same_as<std::ranges::subrange<Iter>> decltype(auto) ret = std::ranges::remove_if(range, [&](i… in test()
139 std::ranges::remove_if(std::array{1, 2, 3, 4}, [](int i) { return i < 0; }); in test()
158 auto ret = std::ranges::remove_if(std::begin(a), std::end(a), comp, proj); in test()
175 auto ret = std::ranges::remove_if(a, comp, proj); in test()
189 auto ret = std::ranges::remove_if(std::begin(a), std::end(a), &S::predicate, &S::identity); in test()
195 auto ret = std::ranges::remove_if(a, &S::predicate, &S::identity); in test()
205 … auto ret = std::ranges::remove_if(a, a + 4, [](const int& i) { return BooleanTestable{i == 3}; }); in test()
[all …]
H A Dremove_if.pass.cpp32 auto it = std::remove_if(std::begin(ia), std::end(ia), equal2); in test_constexpr()
48 int* r = std::remove_if(ia, ia+sa, std::ref(cp)); in test()
80 Iter r = std::remove_if(Iter(ia), Iter(ia+sa), pred()); in test1()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Dunused-return-value.cpp22 ForwardIt remove_if(ForwardIt, ForwardIt, UnaryPredicate);
93 std::remove_if(nullptr, nullptr, nullptr); in warning()
199 auto RemoveIfRetval = std::remove_if(nullptr, nullptr, nullptr); in noWarning()
H A Dinaccurate-erase.cpp37 FwIt remove_if(FwIt begin, FwIt end, Func f);
/llvm-project-15.0.7/lldb/source/Breakpoint/
H A DBreakpointResolver.cpp234 worklist_end = std::remove_if( in SetSCMatchesByLine()
245 worklist_end = std::remove_if( in SetSCMatchesByLine()
254 worklist_end = std::remove_if(worklist_begin, worklist_end, in SetSCMatchesByLine()
275 std::remove_if(std::next(first), worklist_end, in SetSCMatchesByLine()
/llvm-project-15.0.7/libcxx/test/std/containers/sequences/forwardlist/forwardlist.ops/
H A Dremove_if.pass.cpp30 ASSERT_SAME_TYPE(decltype(l.remove_if(pred)), typename L::size_type); in do_remove_if()
31 assert(l.remove_if(pred) == expected); in do_remove_if()
33 ASSERT_SAME_TYPE(decltype(l.remove_if(pred)), void); in do_remove_if()
34 l.remove_if(pred); in do_remove_if()
/llvm-project-15.0.7/pstl/test/std/algorithms/alg.modifying.operations/
H A Dremove.pass.cpp91 OutputIterator i = remove_if(expected_first, expected_last, pred); in operator ()()
92 OutputIterator k = remove_if(exec, out_first, out_last, pred); in operator ()()
129 invoke_if(exec, [&]() { remove_if(exec, iter, iter, non_const(is_even)); }); in operator ()()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DMapVectorTest.cpp105 TEST(MapVectorTest, remove_if) { in TEST() argument
116 MV.remove_if([](const std::pair<int, int> &Val) { return Val.second % 2; }); in TEST()
262 TEST(SmallMapVectorSmallTest, remove_if) { in TEST() argument
273 MV.remove_if([](const std::pair<int, int> &Val) { return Val.second % 2; }); in TEST()
380 TEST(SmallMapVectorLargeTest, remove_if) { in TEST() argument
391 MV.remove_if([](const std::pair<int, int> &Val) { return Val.second % 2; }); in TEST()
/llvm-project-15.0.7/pstl/
H A DREADME.md31 * For `remove`, `remove_if`, `unique` the dereferenced value type of the provided iterators shall b…
33 …`partial_sort`, `partial_sort_copy`, `partition_copy`, `remove`, `remove_if`, `rotate`, `sort`, `s…
/llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/
H A Dunused-return-value.rst16 ``std::async, std::launder, std::remove, std::remove_if, std::unique,
37 - ``std::remove()``, ``std::remove_if()`` and ``std::unique()``. The returned
/llvm-project-15.0.7/libcxx/include/__algorithm/
H A Dremove_if.h24 remove_if(_ForwardIterator __first, _ForwardIterator __last, _Predicate __pred) in remove_if() function
H A Dranges_remove_if.h77 inline constexpr auto remove_if = __remove_if::__fn{};
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DSetVector.h199 bool remove_if(UnaryPredicate P) { in remove_if() function
201 llvm::remove_if(vector_, TestAndEraseFromSet<UnaryPredicate>(P, set_)); in remove_if()
H A DMapVector.h205 template <class Predicate> void remove_if(Predicate Pred);
210 void MapVector<KeyT, ValueT, MapType, VectorType>::remove_if(Function Pred) { in remove_if() function
H A DPriorityWorklist.h195 remove_if(V, TestAndEraseFromMap<UnaryPredicate>(P, M)); in erase_if()
/llvm-project-15.0.7/clang-tools-extra/pseudo/fuzzer/
H A DFuzzer.cpp72 *Argc = std::remove_if(*Argv + 1, *Argv + *Argc, ConsumeArg) - *Argv; in LLVMFuzzerInitialize()
/llvm-project-15.0.7/llvm/unittests/TextAPI/
H A DTextStubHelpers.h40 S.erase(std::remove_if(S.begin(), S.end(), ::isspace), S.end()); in stripWhitespace()
/llvm-project-15.0.7/clang/lib/Index/
H A DFileIndexRecord.cpp49 std::remove_if(Decls.begin(), Decls.end(), [](const DeclOccurrence &D) { in removeHeaderGuardMacros()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DJsonSupport.h105 std::remove_if(filename.begin(), filename.end(), [](auto Char) {
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DParentVirtualCallCheck.cpp77 llvm::remove_if( in getExprAsString()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DModuleManager.cpp270 I->Imports.remove_if(IsVictim); in removeModules()
271 I->ImportedBy.remove_if(IsVictim); in removeModules()
/llvm-project-15.0.7/bolt/lib/Core/
H A DFunctionLayout.cpp74 Blocks.erase(std::remove_if(Blocks.begin(), Blocks.end(), IsErased), in eraseBasicBlocks()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerCommand.h120 Args.erase(std::remove_if(Args.begin(), i, IsMatch), i); in removeFlag()
/llvm-project-15.0.7/mlir/lib/Analysis/
H A DCallGraph.cpp162 it.second->edges.remove_if([node](const CallGraphNode::Edge &edge) { in eraseNode()

1234