2025-08-19 18:36:26 +01:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| IComparer.mqh |
|
2026-01-31 12:29:07 +00:00
|
|
|
//| Copyright 2000-2026, MetaQuotes Ltd. |
|
|
|
|
|
//| www.mql5.com |
|
2025-08-19 18:36:26 +01:00
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//+------------------------------------------------------------------+
|
|
|
|
|
//| 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);
|
|
|
|
|
};
|
|
|
|
|
//+------------------------------------------------------------------+
|