range_map: Add a method to find which range a single value falls into.

This commit is contained in:
Nathan Binkert 2008-10-09 22:19:38 -07:00
parent 6ccf28c896
commit 4ecc5d53a3

View file

@ -69,6 +69,13 @@ class range_map
return tree.end();
}
template <class U>
const iterator
find(const U &r)
{
return find(RangeSize(r, 1));
}
template <class U>
bool
intersect(const Range<U> &r)