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

Method remove_if

src/fl/stl/list.h:457–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455
456 template<typename Predicate>
457 void remove_if(Predicate pred) {
458 iterator it = begin();
459 while (it != end()) {
460 if (pred(*it)) {
461 it = erase(it);
462 } else {
463 ++it;
464 }
465 }
466 }
467
468 void reverse() {
469 if (mSize <= 1) {

Callers 1

FL_TEST_FILEFunction · 0.80

Calls 3

beginFunction · 0.70
endFunction · 0.70
eraseFunction · 0.70

Tested by

no test coverage detected