SortedTree - when node is removed, any remaining children (orphans) go to the nursery
This commit is contained in:
1 parent
a3de2c1983
commit
eedf19474e
1 file changed
+3
@@ -90,6 +90,9 @@ namespace bts.collections {
|
||||
} else {
|
||||
_remove_from_nursery(pk, node);
|
||||
}
|
||||
if (node.children.Count > 0) {
|
||||
_nursery.Add(k, node.children);
|
||||
}
|
||||
}
|
||||
|
||||
public SortedTree<T, TKey> Resort(IComparer<T> comparer) {
|
||||
|
||||
Reference in new issue
Block a user