has method

bool has(
  1. int flag
)

Checks if the integer has a specific flag bit set.

Implementation

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