mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
[BasicContainers] Enable APIs scheduled to ship in 1.5.0
- `RigidArray.nextMutableSpan(after:maximumCount:)` - `UniqueArray.nextMutableSpan(after:maximumCount:)` - `RigidDeque.nextMutableSpan(after:maximumCount:)` - `UniqueDeque.nextMutableSpan(after:maximumCount:)` - `UniqueArray.init(minimumCapacity:)` (replacing `.init(capacity:)`) - `UniqueDeque.init(minimumCapacity:)` (replacing `.init(capacity:)`) - `RigidDeque.index(before:)` - `UniqueDeque.index(before:)` - `RigidDeque.formIndex(before:)` - `UniqueDeque.formIndex(before:)`
This commit is contained in:
11 files changed
+39
-35
No files matched your search
@@ -400,7 +400,6 @@ extension RigidArray where Element: ~Copyable {
|
||||
return _span(in: Range(uncheckedBounds: (start, index)))
|
||||
}
|
||||
|
||||
#if COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW // FIXME: Enable unconditionally in 1.5.0
|
||||
@inlinable
|
||||
@_lifetime(&self)
|
||||
public mutating func nextMutableSpan(after index: inout Int, maximumCount: Int) -> MutableSpan<Element> {
|
||||
@@ -422,7 +421,6 @@ extension RigidArray where Element: ~Copyable {
|
||||
index = start &- Swift.min(maximumCount, start)
|
||||
return _span(in: Range(uncheckedBounds: (index, start)))
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user