mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
Continue applying refactors and optimizations.
Key Changes: - _BTree.init() dynamically computes capacity from stride - _BTree.UnsafePath uses Unmanaged +0 references. Minor Changes: - Fix _BTree.Iterator bug on single-leaf trees.
This commit is contained in:
25 files changed
+195
-179
No files matched your search
@@ -95,7 +95,7 @@ extension SortedDictionary {
|
||||
@inlinable
|
||||
@discardableResult
|
||||
public mutating func updateValue(_ value: Value, forKey key: Key) -> Value? {
|
||||
self._root.setAnyValue(value, forKey: key)?.value
|
||||
self._root.updateAnyValue(value, forKey: key)?.value
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user