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

Method swap

src/fl/stl/list.h:428–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 }
427
428 void swap(list& other) {
429 if (this != &other) {
430 Node* temp_head = mHead;
431 fl::size temp_size = mSize;
432 memory_resource* temp_resource = mResource;
433
434 mHead = other.mHead;
435 mSize = other.mSize;
436 mResource = other.mResource;
437
438 other.mHead = temp_head;
439 other.mSize = temp_size;
440 other.mResource = temp_resource;
441 }
442 }
443
444 // Operations
445 void remove(const T& value) {

Callers 1

swapFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected