diff --git a/src/util/IntrusiveList.hxx b/src/util/IntrusiveList.hxx index c82b1035c..33c97b43f 100644 --- a/src/util/IntrusiveList.hxx +++ b/src/util/IntrusiveList.hxx @@ -312,6 +312,10 @@ public: return {&t}; } + void erase(iterator i) noexcept { + IntrusiveListHook(*i).unlink(); + } + void push_front(T &t) noexcept { auto &new_node = ToNode(t); head.next->prev = &new_node;