ListSG.index

Gets the position of the element containing the given data (starting from 0).

class ListSG
int
index
(
void* data
)

Parameters

data void*

the data to find

Return Value

Type: int

the index of the element containing the data, or -1 if the data is not found