FastLED
3.10.6
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_NO_EXCEPT
.
fl
Generated on Sun Oct 4 2026 23:09:08 for FastLED by
1.13.2