MCPcopy Create free account
hub / github.com/FastLED/FastLED / remove_if

Function remove_if

src/fl/stl/algorithm.h:280–292  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278
279template <typename Iterator, typename UnaryPredicate>
280Iterator remove_if(Iterator first, Iterator last, UnaryPredicate pred) FL_NOEXCEPT {
281 Iterator result = first;
282 while (first != last) {
283 if (!pred(*first)) {
284 if (result != first) {
285 *result = fl::move(*first);
286 }
287 ++result;
288 }
289 ++first;
290 }
291 return result;
292}
293
294namespace detail {
295

Callers 2

flushAllExceptMethod · 0.85
FL_TEST_FILEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected