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 {&ToNode(t)};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return an iterator to the item following the specified one
|
||||||
|
*/
|
||||||
iterator erase(iterator i) noexcept {
|
iterator erase(iterator i) noexcept {
|
||||||
auto result = std::next(i);
|
auto result = std::next(i);
|
||||||
ToHook(*i).unlink();
|
ToHook(*i).unlink();
|
||||||
@ -494,6 +497,9 @@ public:
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return an iterator to the item following the specified one
|
||||||
|
*/
|
||||||
iterator erase_and_dispose(iterator i,
|
iterator erase_and_dispose(iterator i,
|
||||||
Disposer<value_type> auto disposer) noexcept {
|
Disposer<value_type> auto disposer) noexcept {
|
||||||
auto result = erase(i);
|
auto result = erase(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user