[ADT] Mark IntervalMap::overlaps const

This allows the overlaps() predicate to be used on a const IntervalMap.
Tested by building ADTTests, llc, and lldb-test.
This commit is contained in:
Vedant Kumar 2021-10-08 15:00:02 -07:00
parent b3a6d096d7
commit 96f937746e
1 changed files with 1 additions and 1 deletions

View File

@ -1137,7 +1137,7 @@ public:
/// overlaps(a, b) - Return true if the intervals in this map overlap with the
/// interval [a;b].
bool overlaps(KeyT a, KeyT b) {
bool overlaps(KeyT a, KeyT b) const {
assert(Traits::nonEmpty(a, b));
const_iterator I = find(a);
if (!I.valid())