util/IntrusiveForwardList: reset last_cache properly in clear()
This commit is contained in:
parent
5ddddbb16f
commit
44daa6d3e6
@ -185,7 +185,7 @@ public:
|
|||||||
|
|
||||||
void clear() noexcept {
|
void clear() noexcept {
|
||||||
head = {};
|
head = {};
|
||||||
last_cache = {};
|
last_cache = {&head};
|
||||||
counter.reset();
|
counter.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,7 +196,7 @@ public:
|
|||||||
disposer(item);
|
disposer(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
last_cache = {};
|
last_cache = {&head};
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user