contains method
override
Checks if object
is in the queue.
Returns true if the element is found.
Implementation
bool contains(E object) {
return _locate(object) >= 0;
}
Checks if object
is in the queue.
Returns true if the element is found.
bool contains(E object) {
return _locate(object) >= 0;
}