operator & method

int operator &(
  1. Capabilities item
)

Implementation

int operator & (Capabilities item){
  return value & item.value;
}