| OLD | NEW |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 bool ContainsRange(const CheckedRange<ValueType, SizeType>& that) const { | 100 bool ContainsRange(const CheckedRange<ValueType, SizeType>& that) const { |
| 101 DCHECK(IsValid()); | 101 DCHECK(IsValid()); |
| 102 DCHECK(that.IsValid()); | 102 DCHECK(that.IsValid()); |
| 103 | 103 |
| 104 return that.base() >= base() && that.end() <= end(); | 104 return that.base() >= base() && that.end() <= end(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 private: | 107 private: |
| 108 ValueType base_; | 108 ValueType base_; |
| 109 SizeType size_; | 109 SizeType size_; |
| 110 | |
| 111 DISALLOW_COPY_AND_ASSIGN(CheckedRange); | |
| 112 }; | 110 }; |
| 113 | 111 |
| 114 } // namespace crashpad | 112 } // namespace crashpad |
| 115 | 113 |
| 116 #endif // CRASHPAD_UTIL_NUMERIC_CHECKED_RANGE_H_ | 114 #endif // CRASHPAD_UTIL_NUMERIC_CHECKED_RANGE_H_ |
| OLD | NEW |