has method

bool has(
  1. Card c
)

Does this deck contain the given card?

Implementation

bool has(Card c) { return 0 != (cardSet & (1 << c.index)); }