Show: Delphi C++
Display Preferences

System.Generics.Collections.TList.LastIndexOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function LastIndexOf(const Value: T): Integer; inline;

C++

int __fastcall LastIndexOf(const T Value);

Properties

Type Visibility Source Unit Parent
function public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TList

Description

Get index of last instance of entry.

LastIndexOf gets the zero-based index of the last instance of Value in the list. If not found, the function returns -1.

Since the search is linear, it is an O(n) operation for a list with n entries.

See Also

Code Examples


Personal tools
In Other Languages
Previous Versions
Assistance