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

◆ remove()

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

Definition at line 268 of file algorithm.h.

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

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

+ Here is the call graph for this function: