operator < method

bool operator <(
  1. CursorLocation other
)

Implementation

bool operator <(CursorLocation other) =>
    rowNum < other.rowNum ||
    (rowNum == other.rowNum && colNum < other.colNum);