operator < method

bool operator <(
  1. T other
)

Implementation

bool operator <(T other) {
  return index < other.index;
}