mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +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
|
||||
|
||||
/// An ordered, random-access collection of `Bool` values, implemented as an
|
||||
/// uncompressed bitmap of as many bits as the count of the array.
|
||||
///
|
||||
@@ -19,6 +21,9 @@
|
||||
/// structure, treating it as a set of nonnegative integers corresponding to
|
||||
/// `true` bits.
|
||||
public struct BitArray {
|
||||
@usableFromInline
|
||||
internal typealias _BitPosition = _UnsafeBitSet.Index
|
||||
|
||||
@usableFromInline
|
||||
internal var _storage: [_Word]
|
||||
|
||||
|
||||
Reference in new issue
Block a user