Queue.index

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

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

Parameters

datathe data to find

Returns

the position of the first element in queue which

contains data, or -1 if no element in queue contains data