[BitSet, OrderedCollections] Unify UnsafeBitSet implementations

This commit is contained in:
Karoy Lorentey committed 2022-11-28 16:30:55 -08:00
1 parent c80b844e5e
commit a2f4b18ae0
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]