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

265 {
266 Iterator result = first;
267 while (first != last) {
268 if (!(*first == value)) {
269 if (result != first) {
270 *result = fl::move(*first);
271 }
272 ++result;
273 }
274 ++first;
275 }
276 return result;
277}
constexpr remove_reference< T >::type && move(T &&t) FL_NOEXCEPT
Definition s16x16x4.h:28
constexpr int type_rank< T >::value
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References FL_NOEXCEPT, fl::fl::move(), and type_rank< T >::value.

+ Here is the call graph for this function: