operator < method

bool operator <(
  1. Card other
)

Implementation

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