util/IntrusiveList: erase() returns an iterator
This commit is contained in:
parent
b54d2d984a
commit
a0dc398f36
@ -319,8 +319,10 @@ public:
|
|||||||
return {&t};
|
return {&t};
|
||||||
}
|
}
|
||||||
|
|
||||||
void erase(iterator i) noexcept {
|
iterator erase(iterator i) noexcept {
|
||||||
|
auto result = std::next(i);
|
||||||
ToHook(*i).unlink();
|
ToHook(*i).unlink();
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void push_front(T &t) noexcept {
|
void push_front(T &t) noexcept {
|
||||||
|
Loading…
Reference in New Issue
Block a user