| 70 | } |
| 71 | |
| 72 | RangeValue RangeValue::operator- (size_t other) const { |
| 73 | RangeValue retval; |
| 74 | if (_isUnbound) |
| 75 | return retval; |
| 76 | else { |
| 77 | if (other > _val) |
| 78 | retval.set(0); |
| 79 | else |
| 80 | retval.set(_val - other); |
| 81 | return retval; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | RangeValue RangeValue::operator- (const RangeValue& other) const { |
| 86 | if (other.isUnbound() && !(this->isUnbound())) { |