operator < method

bool operator <(
  1. PhoneNumber rhs
)

Returns true if this phone number is numerically less than other

Implementation

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