[BasicContainers] Hashed containers: Add Equatable/Hashable conformances and related methods

This commit is contained in:
Karoy Lorentey committed 2026-02-24 16:40:45 -08:00
1 parent 0e12c9e748
commit 0538000ffd
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