System.Generics.Defaults.TComparison

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TComparison<T> = reference to function(const Left, Right: T): Integer;

C++

template<typename T> __interface TComparison__1  : public System::IInterface

Properties

Type Visibility Source Unit Parent
anonMethod
class
public
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults System.Generics.Defaults

Description

TComparison declares a reference to a generic function.

TComparison declares a reference to a generic callback function used to compare two generic values of the same type.

For example, CompareStr can be represented as TComparison<AnsiString>.

TComparison is primarily used together with the TDelegatedComparer class.

See Also

Code Examples