FastLED 3.9.15
Loading...
Searching...
No Matches

◆ remove_if()

template<typename T>
template<typename Predicate>
void fl::list< T >::remove_if ( Predicate pred)
inline

Definition at line 457 of file list.h.

457 {
458 iterator it = begin();
459 while (it != end()) {
460 if (pred(*it)) {
461 it = erase(it);
462 } else {
463 ++it;
464 }
465 }
466 }
iterator end()
Definition list.h:281
iterator erase(iterator pos)
Definition list.h:352
iterator begin()
Definition list.h:273
A doubly-linked list container.
Definition list.h:21

References begin(), end(), and erase().

+ Here is the call graph for this function: