[Overview][Constants][Types][Classes][Index] |
Find data using the associated key
Source position: fgl.pp line 273
public function TFPSMap.Find( |
AKey: Pointer; |
out Index: Integer |
):Boolean; |
AKey |
|
Key to search for |
Index |
|
Index of first key smaller than Akey |
True if an exact match was found
Find searches for the first key less than or equal to AKey and returns its index in the list in Index. It returns True if an exact match for the key was found. It returns False if the key was not found, and Index is then set to -1
This function performs a binary search using the key comparing function specified in OnKeyPtrCompare.
if OnKeyPtrCompare is not set, an access violation will occur.
|
Callback to compare 2 keys |