Sign in Join
FPDoc Onlineexperiment

TFPSMap.IndexOfData function

Member of TFPSMappublicIn unit fgl

Index of data item AData.

Declaration

pascal
function IndexOfData(AData: Pointer): Integer

Arguments

AData

Data item to search for.

Function result

Index of AData in the Data.

Description

IndexOfData returns the index of the element with data pointed to by AData. It returns -1 if the data item was not found. The search is always performed using a linear search.

See also

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