hasFlag method

bool hasFlag(
  1. int flag
)

Implementation

bool hasFlag(int flag) {
  return this & flag != 0;
}