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

◆ replace_if()

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

Definition at line 255 of file algorithm.h.

255 {
256 while (first != last) {
257 if (pred(*first)) {
258 *first = new_value;
259 }
260 ++first;
261 }
262}

References FL_NOEXCEPT.