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

Method reverse

src/fl/stl/list.h:468–480  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466 }
467
468 void reverse() {
469 if (mSize <= 1) {
470 return;
471 }
472
473 Node* current = mHead;
474 do {
475 Node* temp = current->next;
476 current->next = current->prev;
477 current->prev = temp;
478 current = current->prev; // Move to next node (which is now prev)
479 } while (current != mHead);
480 }
481
482 void unique() {
483 if (mSize <= 1) {

Callers 1

FL_TEST_FILEFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected