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

◆ remove()

template<typename Iterator, typename T>
Iterator fl::remove ( Iterator first,
Iterator last,
const T & value )

Definition at line 205 of file algorithm.h.

205 {
206 Iterator result = first;
207 while (first != last) {
208 if (!(*first == value)) {
209 if (result != first) {
210 *result = fl::move(*first);
211 }
212 ++result;
213 }
214 ++first;
215 }
216 return result;
217}
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: