We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72067b2 commit a0e29daCopy full SHA for a0e29da
spec/hash-map.dd
@@ -108,8 +108,8 @@ $(H2 $(LNAME2 using_classes_as_key, Using Classes as the KeyType))
108
}
109
110
---
111
- The default implementations of $(D toHash) and $(D opEquals) for classes use $(D is)
112
- semantics (the address of the class instance is used to compute the hash, and the address of the class instance is used for comparisons).
+ The default implementation of $(D opEquals) uses the address of the instance for comparisons,
+ and the default implementation of $(D toHash) hashes the address of the instance.
113
114
$(IMPLEMENTATION_DEFINED
115
`opCmp` is not used to check for equality by the
0 commit comments