Skip to content

IComparer<T>

IComparer

IComparer is an interface for implementing a generic class that compares two object of the T type, whether one is greater than, less than or equal to the other one

Description

The IComparer interface determines a method to compare two objects of the T type, on the basis of which a collection of these objects can be sorted.

Declaration

template<typename T>
   interface IComparer

Header

#include <Generic\Interfaces\IComparer.mqh>

Inheritance Hierarchy

IComparer

Direct descendants

: CDefaultComparer

Class Methods

MethodDescription
CompareCompares two values of type T
Last updated on