mirror of
https://github.com/apple/swift-collections
synced 2026-11-30 05:18:44 +00:00
[BasicContainers] Hashed containers: Add Equatable/Hashable conformances and related methods
This commit is contained in:
19 files changed
+445
-14
No files matched your search
@@ -223,4 +223,15 @@ extension _HTable {
|
||||
self._maxProbeLength = 0
|
||||
}
|
||||
}
|
||||
|
||||
extension _HTable {
|
||||
@usableFromInline
|
||||
package func isTriviallyIdentical(to other: borrowing Self) -> Bool {
|
||||
self._count == other._count
|
||||
&& self._capacity == other._capacity
|
||||
&& self._bitmap == other._bitmap
|
||||
&& self._maxProbeLength == other._maxProbeLength
|
||||
&& self.scale == other.scale
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user