MobinMQL/Include/Generic/Interfaces/IEqualityComparable.mqh

20 lines
993 B
MQL5
Raw Permalink Normal View History

2025-07-22 14:47:41 +03:00
//+------------------------------------------------------------------+
//| IEqualityComparable.mqh |
//| Copyright 2000-2025, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Interface IEqualityComparable<T>. |
//| Usage: Defines a generalized method to create a type-specific |
//| method for determining equality of instances. |
//+------------------------------------------------------------------+
template<typename T>
interface IEqualityComparable
{
//--- method for determining equality
bool Equals(T value);
//--- method to calculate hash code
int HashCode(void);
};
//+------------------------------------------------------------------+