mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54:21 +00:00
Clean up the UniqueBox/Ref/MutableRef situation
- UniqueBox is public API, so we cannot remove it in favor of the stdlib’s - Remove Ref and MutableRef. Keep an internal _MutableRef to work around stdlib limitations.
This commit is contained in:
18 files changed
+165
-403
No files matched your search
@@ -116,8 +116,8 @@ extension UniqueArray where Element: ~Copyable {
|
||||
}
|
||||
#endif
|
||||
|
||||
#if compiler(>=6.3) && UnstableContainersPreview
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
#if compiler(>=6.4) && UnstableContainersPreview
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray where Element: ~Copyable {
|
||||
public typealias SubrangeConsumer = RigidArray<Element>.SubrangeConsumer
|
||||
|
||||
|
||||
@@ -47,11 +47,11 @@ extension UniqueArray: RandomAccessContainer where Element: ~Copyable {}
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
extension UniqueArray: MutableContainer where Element: ~Copyable {}
|
||||
|
||||
#if compiler(>=6.3)
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
#if compiler(>=6.4)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: RangeReplaceableContainer where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: DynamicContainer where Element: ~Copyable {}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user