Represents a method that compares two values of the same type.
Delphi
TComparison<T> = reference to function(const Left: T; const Right: T): Integer;
Type Parameters
- T
The type of values to compare.
Parameters
- Left
- T
The first value to compare.
- Right
- T
The second value to compare.
Returns
Integer
A value less than zero if Left is less than
Right, zero if they are equal, or a value greater
than zero if Left is greater than
Right.
- Inheritance
-
IInterfaceTComparison<T>