Skip to content

CDefaultComparer<T>

CDefaultComparer

CDefaultComparer is a helper class that implements the IComparer generic interface based on Compare global methods.

Description

The CDefaultComparer class is used by default in generic data collections, unless the user implicitly uses another class implementing the IComparer interface.

Declaration

template<typename T>
   class CDefaultComparer : public IComparer<T>

Header

#include <Generic\Internal\DefaultComparer.mqh>

Inheritance Hierarchy

IComparer

CDefaultComparer

Class Methods

MethodDescription
CompareCompares two values of type T
Last updated on