mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
Key Changes: - Implement removal through SortedDictionary subscript - Implement _BTree.contains for efficient existence checking - Add tests - _Node.UnsafeHandle.rotation/collapse tests - _BTree.removeAny tests - Expand benchmarks - Add C++ reference lookup benchmarks - Correct old benchmarks Minor Changes: - Remove B-Tree benchmarks, correct SortedDictionary benchmarks - Adjust debug B-Tree printer to show both numElements and numTotalElements - Add total count synchronization invariant check - Implement CustomReflectable for B-Tree
19 lines
648 B
Swift
19 lines
648 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Collections open source project
|
|
//
|
|
// Copyright (c) 2021 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
extension _BTree: CustomReflectable {
|
|
/// The custom mirror for this instance.
|
|
@inlinable
|
|
internal var customMirror: Mirror {
|
|
Mirror(self, unlabeledChildren: self, displayStyle: .dictionary)
|
|
}
|
|
}
|