contains method

bool contains (E object)
override

Checks if object is in the queue.

Returns true if the element is found.

Implementation

bool contains(E object) {
  return _locate(object) >= 0;
}