Commit a0dc398f authored by Max Kellermann's avatar Max Kellermann

util/IntrusiveList: erase() returns an iterator

parent b54d2d98
......@@ -319,8 +319,10 @@ public:
return {&t};
}
void erase(iterator i) noexcept {
iterator erase(iterator i) noexcept {
auto result = std::next(i);
ToHook(*i).unlink();
return result;
}
void push_front(T &t) noexcept {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment