Sign in Join
FPDoc Onlineexperiment

TFPGMapInterfacedObjectData.Find function

Member of TFPGMapInterfacedObjectDatapublicIn unit fgl

Find item based on key.

Declaration

pascal
function Find(const AKey: TKey; out Index: Integer): Boolean

Arguments

AKey

Key to search for.

Index

Index of found key.

Function result

True if an exact match for AKey was found.

Description

Find will search the first key smaller than or equal to AKey and return its index in AIndex. If the key was not found then -1 is returned. The return value of the function is True if an exact match for AKey is found, False otherwise.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.