clear method
override
Removes all elements in the queue. The size of the queue becomes zero.
Implementation
void clear() {
_sentinel._nextLink = _sentinel;
_sentinel._previousLink = _sentinel;
_elementCount = 0;
}
Removes all elements in the queue. The size of the queue becomes zero.
void clear() {
_sentinel._nextLink = _sentinel;
_sentinel._previousLink = _sentinel;
_elementCount = 0;
}