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 {
|
||||
head = {};
|
||||
last_cache = {};
|
||||
last_cache = {&head};
|
||||
counter.reset();
|
||||
}
|
||||
|
||||
|
@ -196,7 +196,7 @@ public:
|
|||
disposer(item);
|
||||
}
|
||||
|
||||
last_cache = {};
|
||||
last_cache = {&head};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue