[BitSet] Add documentation

This commit is contained in:
Karoy Lorentey committed 2022-08-16 19:01:11 -07:00
1 parent 45ecd2ebee
commit d8d9c5ea25
22 files changed
+717 -13

No files matched your search

@@ -9,6 +9,15 @@
//
//===----------------------------------------------------------------------===//
/// An ordered, random-access collection of `Bool` values, implemented as an
/// uncompressed bitmap of as many bits as the count of the array.
///
/// Bit arrays implement `RangeReplaceableCollection` and `MutableCollection`
/// and provide limited support for bitwise operations on same-sized arrays.
///
/// See `BitSet` for an alternative form of the same underlying data
/// structure, treating it as a set of nonnegative integers corresponding to
/// `true` bits.
public struct BitArray {
@usableFromInline
internal var _storage: [_Word]