clear method

Removes all elements in the queue. The size of the queue becomes zero.

void clear( )

Removes all elements in the queue. The size of the queue becomes zero.