operator < method

bool operator <(
  1. Year other
)

Checks if this year is strictly before another year.

Implementation

bool operator <(Year other) => value < other.value;