mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
[BitSet, OrderedCollections] Unify UnsafeBitSet implementations
This commit is contained in:
29 files changed
+944
-1382
No files matched your search
@@ -9,6 +9,8 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import _CollectionsUtilities
|
||||
|
||||
/// A sorted collection of small nonnegative integers, implemented as an
|
||||
/// uncompressed bitmap of as many bits as the value of the largest member.
|
||||
///
|
||||
@@ -65,7 +67,7 @@ extension BitSet {
|
||||
}
|
||||
|
||||
internal mutating func _shrink() {
|
||||
let suffix = _read { $0.emptySuffix() }
|
||||
let suffix = _read { $0._emptySuffix() }
|
||||
if suffix > 0 { _storage.removeLast(suffix) }
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user