util/IntrusiveList: document the erase() return value
This commit is contained in:
parent
6d39b401b5
commit
f76583a08a
@ -487,6 +487,9 @@ public:
|
||||
return {&ToNode(t)};
|
||||
}
|
||||
|
||||
/**
|
||||
* @return an iterator to the item following the specified one
|
||||
*/
|
||||
iterator erase(iterator i) noexcept {
|
||||
auto result = std::next(i);
|
||||
ToHook(*i).unlink();
|
||||
@ -494,6 +497,9 @@ public:
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return an iterator to the item following the specified one
|
||||
*/
|
||||
iterator erase_and_dispose(iterator i,
|
||||
Disposer<value_type> auto disposer) noexcept {
|
||||
auto result = erase(i);
|
||||
|
Loading…
Reference in New Issue
Block a user