operator < method

bool operator <(
  1. Suit other
)

Implementation

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