RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComparer.Construct Method

Construct creates an instance of the TComparer class.

Pascal
class function Construct(const Comparison: TComparison<T>): IComparer<T>;
C++
__fastcall IComparer<T> Construct(const TComparison<T> Comparison);

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

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!