RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TEqualityComparer.Construct Method

Construct creates an instance of the TEqualityComparer class.

Pascal
class function Construct(const EqualityComparison: TEqualityComparison<T>; const Hasher: THasher<T>): IEqualityComparer<T>;
C++
__fastcall IEqualityComparer<T> Construct(const TEqualityComparison<T> EqualityComparison, const THasher<T> Hasher);

Use the Construct method when you have to create an instance of the TEqualityComparer class. EqualityComparison is a reference to a TEqualityComparison routine that will handle the equality of all checks. Hasher is a reference to a THasher routine which will handle all requests to generate a hash code.  

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

 

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