20 void LinkedListImpl::insert(LinkImpl* item)
26 bool LinkedListImpl::remove(LinkImpl* item)
28 if (head_ ==
nullptr)
return false;
32 item->next_ =
nullptr;
35 LinkImpl* previous = head_;
36 LinkImpl* current = head_->next_;
37 while (current !=
nullptr)
41 previous->next_ = current->next_;
42 item->next_ =
nullptr;
46 current = current->next_;
Utility API to handle linked list containers.
Contains all FastArduino generic containers: