isSet function

bool isSet(
  1. int selectedOptions,
  2. int option
)

Implementation

bool isSet(int selectedOptions, int option) {
  return (selectedOptions & option) == option;
}