Show: Delphi C++
Display Preferences

System.Generics.Defaults.TDelegatedComparer.Compare

From RAD Studio API Documentation
Jump to: navigation, search

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance