QueueG.pushNth

Inserts a new element into queue at the given position.

class QueueG
void
pushNth
(
void* data
,
int n
)

Parameters

data void*

the data for the new element

n int

the 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.

Meta