sparse_set: make ::pop_all work property in managed swap_only mode
This commit is contained in:
@@ -293,8 +293,10 @@ protected:
|
||||
break;
|
||||
}
|
||||
[[fallthrough]];
|
||||
case deletion_policy::swap_and_pop:
|
||||
case deletion_policy::swap_only:
|
||||
head = {};
|
||||
[[fallthrough]];
|
||||
case deletion_policy::swap_and_pop:
|
||||
for(auto first = begin(); !(first.index() < 0); ++first) {
|
||||
sparse_ref(*first) = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user