BasicContainers] Add UniqueArray.isTriviallyIdentical(to:)

This commit is contained in:
Karoy Lorentey committed 2026-04-08 18:31:10 -07:00
1 parent b4bfd6d02e
commit 7f4cebd2c5
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