def uniformlyNonDecreasing(buffer, item, attempts):
    """
    Stops after the buffer has seen a value larger than the one being searched for.
    The default halting condition for the Buffer class.
    """
    if buffer._cache[-1] > item:
        return True
    return False
