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

◆ remove_if()

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

Definition at line 283 of file algorithm.h.

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

References fl::FL_NO_EXCEPT, and move().

+ Here is the call graph for this function: