File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -81,8 +81,7 @@ $(H2 $(LNAME2 testing_membership, Testing Membership))
81
81
82
82
$(H2 $(LNAME2 using_classes_as_key, Using Classes as the KeyType))
83
83
84
- $(P Classes can be used as the $(I KeyType). For this to work,
85
- the class definition must override the following member functions
84
+ $(P Classes can be used as the $(I KeyType). The behavior is controlled by the following member functions
86
85
of class $(D Object):)
87
86
88
87
$(UL
@@ -109,6 +108,8 @@ $(H2 $(LNAME2 using_classes_as_key, Using Classes as the KeyType))
109
108
}
110
109
}
111
110
---
111
+ The default implementation of $(D opEquals) uses the address of the instance for comparisons,
112
+ and the default implementation of $(D toHash) hashes the address of the instance.
112
113
113
114
$(IMPLEMENTATION_DEFINED
114
115
`opCmp` is not used to check for equality by the
You can’t perform that action at this time.
0 commit comments