mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[BasicContainers] Add early drafts for RigidSet/RigidDictionary
This commit is contained in:
36 files changed
+2411
-51
No files matched your search
@@ -42,7 +42,7 @@ internal struct _ChunkedBitsForwardIterator {
|
||||
.shiftedDown(by: b),
|
||||
count: end.bit - b)
|
||||
}
|
||||
let c = UInt(_Word.capacity) - b
|
||||
let c = _Word._capacity - b
|
||||
position.value += c
|
||||
return (bits: words[w].shiftedDown(by: b), count: c)
|
||||
}
|
||||
@@ -85,7 +85,7 @@ internal struct _ChunkedBitsBackwardIterator {
|
||||
|
||||
extension IteratorProtocol where Element == Bool {
|
||||
mutating func _nextChunk(
|
||||
maximumCount: UInt = UInt(_Word.capacity)
|
||||
maximumCount: UInt = _Word._capacity
|
||||
) -> (bits: _Word, count: UInt) {
|
||||
assert(maximumCount <= _Word.capacity)
|
||||
var bits = _Word.empty
|
||||
|
||||
Reference in new issue
Block a user