Queue.pushNth

void pushNth(void * data, int n)

Inserts a new element into queue at the given position.

Parameters

datathe data for the new element
nthe position to insert the new element. If n is negative or larger than the number of elements in the queue, the element is added to the end of the queue.