clear method Null safety

void clear()

Removes all the elements from this queue.

Implementation

void clear();