xtd 0.2.0
Loading...
Searching...
No Matches

◆ iequality_comparer

Defines methods to support the comparison of objects for equality.

Defines methods to support the comparison of objects for equality.
Definition iequality_comparer.h:34
Header
#include <xtd/collections/iequality_comparer>
Namespace
xtd::collections
Library
xtd.core
Remarks
This interface allows the implementation of customized equality comparison for collections. That is, you can create your own definition of equality, and specify that this definition be used with a collection type that accepts the xtd::collections::iequality_comparer interface. In the xtd framework, constructors of the xtd::collections::hashtable, xtd::collections::specialized::name_value_collection, and xtd::collections::specialized::ordered_dictionary collection types accept this interface.
For the generic version of this interface, see xtd::collections::generic::iequality_comparer <type_t>.
The xtd::collections::iequality_comparer interface supports only equality comparisons. Customization of comparisons for sorting and ordering is provided by the xtd::collections::icomparer interface.