Skip to content

IEqualityComparable<T>

IEqualityComparable

IEqualityComparable is an interface for implementing objects that can be compared.

Description

The IEqualityComparable interface defines methods to retrieve the hash code of the current object and to check whether it is equal to another object of the same type.

Declaration

template<typename T>
   interface IEqualityComparable

Header

#include <Generic\Interfaces\IEqualityComparable.mqh>

Inheritance Hierarchy

IEqualityComparable

Direct descendants

: IComparable

Class Methods

MethodDescription
EqualsCompares the current object with the specified value
HashCodeCalculates the hash code value for the current object
Last updated on