mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
BasicContainers] Add UniqueArray.isTriviallyIdentical(to:)
This commit is contained in:
1 file changed
+7
@@ -17,6 +17,13 @@
|
||||
import InternalCollectionsUtilities
|
||||
#endif
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
extension UniqueArray where Element: ~Copyable {
|
||||
public func isTriviallyIdentical(to other: borrowing Self) -> Bool {
|
||||
self._storage.isTriviallyIdentical(to: other._storage)
|
||||
}
|
||||
}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
extension UniqueArray /*: Equatable */ where Element: Equatable /* & ~Copyable */ {
|
||||
@inlinable
|
||||
|
||||
Reference in new issue
Block a user