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

◆ find_if()

template<typename Iterator, typename UnaryPredicate>
Iterator fl::find_if ( Iterator first,
Iterator last,
UnaryPredicate pred )

Definition at line 183 of file algorithm.h.

183 {
184 while (first != last) {
185 if (pred(*first)) {
186 return first;
187 }
188 ++first;
189 }
190 return last;
191}