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

◆ erase() [2/2]

template<typename T>
iterator fl::list< T >::erase ( iterator pos)
inline

Definition at line 352 of file list.h.

352 {
353 if (pos == end()) {
354 return end();
355 }
356 Node* node = pos.mNode;
357 Node* next_node = node->next;
358 unlink(node);
360 --mSize;
361 return iterator(next_node);
362 }
iterator end()
Definition list.h:281
void unlink(Node *node)
Definition list.h:76
void destroy_node(Node *node)
Definition list.h:62
fl::size mSize
Definition list.h:33
A doubly-linked list container.
Definition list.h:21

References destroy_node(), end(), mSize, fl::list< T >::Node::next, pos, and unlink().

Referenced by erase(), pop_back(), pop_front(), remove(), remove_if(), and unique().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: