QueueArray.find

Finds an element in the queue @array, either by comparing every element with @func or by looking up @data if no compare function @func is provided, and returning the index of the found element.

class QueueArray
uint
find
(
GCompareFunc func
,
void* data
)

Parameters

func GCompareFunc

comparison function, or %NULL to find @data by value

data void*

data for comparison function

Return Value

Type: uint

Index of the found element or -1 if nothing was found.

Meta