diff --git a/src/util/IntrusiveForwardList.hxx b/src/util/IntrusiveForwardList.hxx index a00d06050..2b792fee6 100644 --- a/src/util/IntrusiveForwardList.hxx +++ b/src/util/IntrusiveForwardList.hxx @@ -200,6 +200,11 @@ public: return i; } + void pop_front_and_dispose(Disposer auto disposer) noexcept { + auto &i = pop_front(); + disposer(&i); + } + class const_iterator; class iterator final {