mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[BitSet] Revert to non-generic BitSet
Also, remove members that were generic over FixedWidthInteger.
This commit is contained in:
1 parent
d8bace07c8
commit
cbf933665b
27 files changed
+356
-711
No files matched your search
@@ -10,9 +10,9 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
extension BitArray {
|
||||
public init(_ set: BitSet<Index>) {
|
||||
public init(_ set: BitSet) {
|
||||
guard let l = set.last else { self.init(); return }
|
||||
self.init(_storage: set._core._storage, count: l + 1)
|
||||
self.init(_storage: set._storage, count: l + 1)
|
||||
}
|
||||
|
||||
public init<I: BinaryInteger>(bitPattern value: I) {
|
||||
|
||||
@@ -13,6 +13,8 @@ public struct BitArray {
|
||||
@usableFromInline
|
||||
internal var _storage: [_Word]
|
||||
|
||||
/// The number of bits in the bit array. This may less than the number of bits
|
||||
/// in `_storage` if the last word isn't fully filled.
|
||||
@usableFromInline
|
||||
internal var _count: UInt
|
||||
|
||||
|
||||
Reference in new issue
Block a user