mirror of
https://github.com/apple/swift-collections
synced 2026-11-29 05:14:20 +00:00
[ContainersPreview] Conform [Unique,Rigid]Array and [Unique,Rigid]Deque to container protocols
This commit is contained in:
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, *)
|
||||
|
||||
Reference in new issue
Block a user