mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
[BasicContainers] Add removal operations to dictionaries
This commit is contained in:
6 files changed
+235
-8
No files matched your search
@@ -15,7 +15,7 @@
|
||||
extension UniqueSet where Element: ~Copyable {
|
||||
@inlinable
|
||||
package mutating func _remove(at bucket: _Bucket) -> Element {
|
||||
guard self.count == _HTable.minimumCapacity(forScale: self._scale) else {
|
||||
guard self.count <= _HTable.minimumCapacity(forScale: self._scale) else {
|
||||
return _storage._remove(at: bucket)
|
||||
}
|
||||
// Shrink storage.
|
||||
|
||||
Reference in new issue
Block a user