clear

fun clear()

Clears all elements from this queue.

The capacity of the queue will not change as a result of this action.

This operation is O(n) where n is the current size of the queue.