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

Method erase

src/fl/stl/list.h:352–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

350 }
351
352 iterator erase(iterator pos) {
353 if (pos == end()) {
354 return end();
355 }
356 Node* node = pos.mNode;
357 Node* next_node = node->next;
358 unlink(node);
359 destroy_node(node);
360 --mSize;
361 return iterator(next_node);
362 }
363
364 iterator erase(iterator first, iterator last) {
365 while (first != last) {

Callers

nothing calls this directly

Calls 3

endFunction · 0.70
iteratorClass · 0.70
eraseFunction · 0.70

Tested by

no test coverage detected