FastLED 3.10.8
Loading...
Searching...
No Matches

◆ replace_if()

template<typename Iterator, typename UnaryPredicate, typename T>
void fl::adl_barrier::replace_if ( Iterator first,
Iterator last,
UnaryPredicate pred,
const T & new_value )

Definition at line 258 of file algorithm.h.

258 {
259 while (first != last) {
260 if (pred(*first)) {
261 *first = new_value;
262 }
263 ++first;
264 }
265}

References fl::FL_NO_EXCEPT.