UA6-9V_VL6-N9/Include/Generic/Interfaces/IComparer.mqh
LengKundee 8ccab0fb6a
2025-12-06 22:12:57 +07:00

17 行
981 B
MQL5

//+------------------------------------------------------------------+
//| IComparer.mqh |
//| Copyright 2000-2025, MetaQuotes Ltd. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
//+------------------------------------------------------------------+
//| Interface IComparer<T>. |
//| Usage: Defines a method that a type implements to compare two |
//| values. |
//+------------------------------------------------------------------+
template<typename T>
interface IComparer
{
//--- compares two values and returns a value indicating whether one is less than, equal to, or greater than the other
int Compare(T x,T y);
};
//+------------------------------------------------------------------+