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

◆ replace()

template<typename Iterator, typename T>
void fl::replace ( Iterator first,
Iterator last,
const T & old_value,
const T & new_value )

Definition at line 245 of file algorithm.h.

245 {
246 while (first != last) {
247 if (*first == old_value) {
248 *first = new_value;
249 }
250 ++first;
251 }
252}

References FL_NOEXCEPT.