System.Generics.Defaults.TComparer.Construct
Delphi
class function Construct(const Comparison: TComparison<T>): IComparer<T>;
C++
__classmethod System::DelphiInterface<IComparer__1<T> > __fastcall Construct(const System::DelphiInterface<TComparison__1<T> > Comparison);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Generics.Defaults.pas System.Generics.Defaults.hpp |
System.Generics.Defaults | TComparer |
説明
Construct は TComparer クラスのインスタンスを作成します。
TComparer クラスのインスタンスを生成する必要がある場合は、Construct メソッドを使用します。Comparison は、すべての比較要求を処理する TComparison ルーチンへの参照です。
Construct では、TDelegatedComparer の新しいインスタンスを生成し、ユーザーから提供されるルーチンをパラメータとして TDelegatedComparer のコンストラクタに渡します。