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

Method remove

src/fl/stl/list.h:445–454  ·  view source on GitHub ↗

Operations

Source from the content-addressed store, hash-verified

443
444 // Operations
445 void remove(const T& value) {
446 iterator it = begin();
447 while (it != end()) {
448 if (*it == value) {
449 it = erase(it);
450 } else {
451 ++it;
452 }
453 }
454 }
455
456 template<typename Predicate>
457 void remove_if(Predicate pred) {

Callers 6

removeChangedCallbackMethod · 0.45
removeClickedCallbackMethod · 0.45
removePressedCallbackMethod · 0.45
removeOnClickMethod · 0.45
removeOnChangeMethod · 0.45

Calls 3

beginFunction · 0.70
endFunction · 0.70
eraseFunction · 0.70

Tested by

no test coverage detected