Queue.index

Returns the position of the first element in queue which contains data.

class Queue
int
index
(
const(void)* data = null
)

Parameters

data const(void)*

the data to find

Return Value

Type: int

the position of the first element in queue which contains data, or -1 if no element in queue contains data