[ContainersPreview] Conform [Unique,Rigid]Array and [Unique,Rigid]Deque to container protocols

This commit is contained in:
Karoy Lorentey committed 2026-03-17 13:13:42 -07:00
1 parent 121462fe19
commit 6bbed0e1e2
15 files changed
+313 -198

No files matched your search

@@ -31,6 +31,12 @@ extension UniqueArray where Element: ~Copyable {
public init(capacity: Int) {
_storage = .init(capacity: capacity)
}
/// Initializes a new unique array with the specified capacity and no elements.
@inlinable
public init(minimumCapacity: Int) {
_storage = .init(capacity: minimumCapacity)
}
}
@available(SwiftStdlib 5.0, *)