FastLED 3.9.15
Loading...
Searching...
No Matches

◆ unique()

template<typename T>
void fl::list< T >::unique ( )
inline

Definition at line 482 of file list.h.

482 {
483 if (mSize <= 1) {
484 return;
485 }
486
487 iterator it = begin();
488 while (it != end()) {
489 iterator next = it;
490 ++next;
491 if (next != end() && *it == *next) {
492 erase(next);
493 } else {
494 ++it;
495 }
496 }
497 }
iterator end()
Definition list.h:281
iterator erase(iterator pos)
Definition list.h:352
iterator begin()
Definition list.h:273
fl::size mSize
Definition list.h:33
A doubly-linked list container.
Definition list.h:21

References begin(), end(), erase(), and mSize.

+ Here is the call graph for this function: