[BasicContainers] Add removal operations to dictionaries

This commit is contained in:
Karoy Lorentey committed 2026-02-23 13:59:36 -08:00
1 parent 8624f936ea
commit 2654a0711e
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.