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

◆ remove_if()

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

Definition at line 280 of file algorithm.h.

280 {
281 Iterator result = first;
282 while (first != last) {
283 if (!pred(*first)) {
284 if (result != first) {
285 *result = fl::move(*first);
286 }
287 ++result;
288 }
289 ++first;
290 }
291 return result;
292}
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
Definition s16x16x4.h:28
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References FL_NOEXCEPT, and fl::fl::move().

+ Here is the call graph for this function: