System.Generics.Defaults.TComparer.Construct

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class function Construct(const Comparison: TComparison<T>): IComparer<T>; static; inline;

C++

static System::DelphiInterface<IComparer__1<T> > __fastcall Construct(const System::DelphiInterface<TComparison__1<T> > Comparison);

Properties

Type Visibility Source Unit Parent
function public
System.Generics.Defaults.pas
System.Generics.Defaults.hpp
System.Generics.Defaults TComparer

Description

Construct creates an instance of the TComparer class.

Use the Construct method when you have to create an instance of the TComparer class. Comparison is a reference to a TComparison routine that will handle all comparison requests.

Construct creates a new instance of TDelegatedComparer, passing the user-supplied routine as a parameter to the constructor of TDelegatedComparer.

See Also