changeset 6782d007ca45 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=6782d007ca45
description:
range_map: Add a method to find which range a single value falls into.
diffstat:
1 file changed, 3 insertions(+)
src/base/range_map.hh | 3 +++
diffs (17 lines):
diff -r cc5eed86382f -r 6782d007ca45 src/base/range_map.hh
--- a/src/base/range_map.hh Thu Oct 09 09:25:41 2008 -0700
+++ b/src/base/range_map.hh Thu Oct 09 22:19:38 2008 -0700
@@ -70,6 +70,13 @@
}
template <class U>
+ const iterator
+ find(const U &r)
+ {
+ return find(RangeSize(r, 1));
+ }
+
+ template <class U>
bool
intersect(const Range<U> &r)
{
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev