Sign in Join
FPDoc Onlineexperiment

TFPHashList.IndexOf function

Member of TFPHashListpublicIn unit Contnrs

Return the index of the data pointer.

Declaration

pascal
function IndexOf(Item: Pointer): SizeInt

Arguments

Item

Data pointer to search for.

Function result

Index of Item in the list.

Description

IndexOf returns the index of the first occurrence of pointer Item. If the item is not in the list, -1 is returned.

The performed search is linear, and not very efficient.

See also

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