2

I can determine how many intervals are in an interval_map by iterating over the intervals, but is there a more direct method for getting the number of intervals in an interval map? The size() method of boost::icl::interval_map doesn't seem to return a meaningful value.

4

1 回答 1

2

If you want to know how many steps an iteration would take use boost::icl::interval_map::iterative_size(). It's defined in boost::icl::interval_base_map and inherited by interval_map.

于 2013-03-30T10:11:57.347 回答