gt method

bool gt(
  1. Iterator<U> other
)

Determines if the elements of this Iterator are lexicographically greater than those of another.

Implementation

bool gt(Iterator<U> other) {
  return cmp(other) > 0;
}