util/IntrusiveForwardList: add pop_front_and_dispose()
This commit is contained in:
parent
b0da0bbf8b
commit
9fe813e572
@ -200,6 +200,11 @@ public:
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void pop_front_and_dispose(Disposer<value_type> auto disposer) noexcept {
|
||||||
|
auto &i = pop_front();
|
||||||
|
disposer(&i);
|
||||||
|
}
|
||||||
|
|
||||||
class const_iterator;
|
class const_iterator;
|
||||||
|
|
||||||
class iterator final {
|
class iterator final {
|
||||||
|
Loading…
Reference in New Issue
Block a user