range_map: Add a method to find which range a single value falls into.
This commit is contained in:
parent
6ccf28c896
commit
4ecc5d53a3
1 changed files with 7 additions and 0 deletions
|
@ -69,6 +69,13 @@ class range_map
|
||||||
return tree.end();
|
return tree.end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class U>
|
||||||
|
const iterator
|
||||||
|
find(const U &r)
|
||||||
|
{
|
||||||
|
return find(RangeSize(r, 1));
|
||||||
|
}
|
||||||
|
|
||||||
template <class U>
|
template <class U>
|
||||||
bool
|
bool
|
||||||
intersect(const Range<U> &r)
|
intersect(const Range<U> &r)
|
||||||
|
|
Loading…
Reference in a new issue