util/IntrusiveList: erase() returns an iterator

This commit is contained in:
Max Kellermann 2021-02-25 14:00:26 +01:00
parent b54d2d984a
commit a0dc398f36

View File

@ -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 {