RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDelegatedEqualityComparer.GetHashCode Method

GetHashCode is a generic method that generates a hash code for a given value.

Pascal
function GetHashCode(const Value: T): Integer; override; overload;
C++
virtual __fastcall int GetHashCode(const T Value);

Use the GetHashCode method to generate a hash code for the given input value. As implemented in TDelegatedEqualityComparer, GetHashCode simply forwards the call to the user-supplied routine. 

 

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