mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[Internals] Add missing internal checking predicates & docs for all
This commit is contained in:
1 parent
5b5651957b
commit
f76630db8e
8 files changed
+72
No files matched your search
@@ -9,7 +9,19 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
import _CollectionsUtilities
|
||||
|
||||
extension BitArray {
|
||||
/// True if consistency checking is enabled in the implementation of this
|
||||
/// type, false otherwise.
|
||||
///
|
||||
/// Documented performance promises are null and void when this property
|
||||
/// returns true -- for example, operations that are documented to take
|
||||
/// O(1) time might take O(*n*) time, or worse.
|
||||
public static var _isConsistencyCheckingEnabled: Bool {
|
||||
_isCollectionsInternalCheckingEnabled
|
||||
}
|
||||
|
||||
#if COLLECTIONS_INTERNAL_CHECKS
|
||||
@inline(never)
|
||||
@_effects(releasenone)
|
||||
|
||||
Reference in new issue
Block a user