I'm using boost::icl::interval_maps with int intervals and I was wondering how can I get the values for int (key) that belongs to some interval? For ...
I'm using boost::icl::interval_maps with int intervals and I was wondering how can I get the values for int (key) that belongs to some interval? For ...
I've been using boost::numeric::interval everywhere in my code. Now I've started using the boost interval container library. Does there exist an adapt ...
The code below is supposed to insert two intervals with associated values 0 and 1 into the Boost interval map, but it inserts only one: Output: ...
What i get are the indices added up. But i'm looking for all the values (ints) of the interval containing 'probe'. (intersection?) I could achi ...
I am working on intervals in a c++ program. I want something like below: I want to add intervals iteratively in a for loop. Assume my first interval ...
I'm having difficulty understanding interval_map & split_interval_map, I implemented both & result is same. Below is the code for split interv ...
I have a service which has outages in 4 different locations. I am modeling each location outages into a Boost ICL interval_set. I want to know when at ...
I am iterating a boost interval_set<unsigned_int>, and I was expecting each iterator to be a boost interval, whose values would be accessed with ...
In Boost ICL, when I call cardinality() or size() functions on an interval set, the return type is size_t, independent of the type of interval. On 32- ...
Boost.ICL's interval_map has two kinds of behaviors: += and insert. Both are useful in different context. The first adds up values in common intersect ...
I started to use Boost ICL and I stumbled upon very basic stuff. For example the function contains should return true or false depending if a given el ...
I'm using interval_map from BOOST library. Say I have this in populations Now I want to find out what is mapped on some number: I would expect s ...
I already have working (ugly) code for this, but I will ask anyway: I have the time intervals [09:15, 10:00), [21:10, 21:45) during weekdays. Given t ...
I'm having some problems trying to overload the += operator for an enum I've defined within a namespace. I shouldn't need to actually use the operator ...
I believe I'd like to use boost::icl::interval_map to solve a problem (described here, I'll post a complete answer if interval_maps ultimately work.) ...
How do I shift a discrete_interval using the Boost interval container library? i.e. I want to subtract integer c from the lower() of the interval an ...
I've started work with boost:icl library which is really comprehensive and convenient. I'm using mostly two types of intervals from boost, boost::icl ...
I'm trying to use Boost (1.51) ICL to simplify some interval searches. Types: SequenceI::shp_set is a std::set of shared pointers types::mz_t i ...
I have code like: This works well. But boost complains if I change the 'set' to a 'list' in the above code. Is only the 'set' supported as a val ...
Is there an built-in way to get the number of intervals in a boost::icl::interval_map? I can't find it in the documentation. The method size() has a d ...