operator <= method

bool operator <=(
  1. PhoneNumber rhs
)

Returns true if this phone number is numerically less than or equal to other

Implementation

bool operator <=(PhoneNumber rhs) {
  return this < rhs || (this == rhs);
}