System.Generics.Defaults.TDelegatedComparer.Compare
Delphi
function Compare(const Left, Right: T): Integer; override;
C++
virtual int __fastcall Compare(const T Left, const T Right);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | TDelegatedComparer |
Description
Compare is a generic method that compares two values.
Use the Compare method to compare two values of the same type. As implemented in TDelegatedComparer, Compare simply forwards the call to the user-supplied routine.