push_nth


Description:

[ Version ( since = "2.4" ) ]
public void push_nth (owned G data, int n)

Inserts a new element into this at the given position.

Parameters:

this

a Queue

data

the data for the new element

n

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