Navigation: Code Documentation > RSCommon > DataStructures > Classes > THeap > Methods
THeap.IndexOf(TObject) Method
Finds an item in the heap and returns its index in the heap.
The heap is assumed to be sorted .
Namespace: DataStructures
Delphi
public function IndexOf( Item: TObject ): Integer; override;
Parameters
Item
Type: TObject
Type: Integer
TCustomHeap.IndexOf(TObject)
•DataStructures.TCustomHeap.Item[Integer]
•THeap
•DataStructures