MCPcopy Create free account
hub / github.com/FastLED/FastLED / remove

Function remove

src/fl/stl/algorithm.h:265–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263
264template <typename Iterator, typename T>
265Iterator remove(Iterator first, Iterator last, const T& value) FL_NOEXCEPT {
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}
278
279template <typename Iterator, typename UnaryPredicate>
280Iterator remove_if(Iterator first, Iterator last, UnaryPredicate pred) FL_NOEXCEPT {

Callers 6

clearMethod · 0.50
runMethod · 0.50
removeFileFunction · 0.50
forceRemoveDirectoryFunction · 0.50
get_symbol_with_gdbMethod · 0.50
FL_TEST_FILEFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected