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 220 of file algorithm.h.

220 {
221 Iterator result = first;
222 while (first != last) {
223 if (!pred(*first)) {
224 if (result != first) {
225 *result = fl::move(*first);
226 }
227 ++result;
228 }
229 ++first;
230 }
231 return result;
232}
Result type for promise operations.
constexpr remove_reference< T >::type && move(T &&t) noexcept
Definition move.h:27

References move().

+ Here is the call graph for this function: