eq method

bool eq(
  1. int val
)

Equal to

Implementation

bool eq(int val) {
  return _val == val;
}