Boost logo

Boost Users :

Subject: [Boost-users] [ICL] Search for an interval in a map
From: Oodini (svdbg____at_[hidden])
Date: 2014-03-18 15:26:22


Let's suppose I have a map with 3 intervals :

[0,5), [5,10), [10,15)

If I want to apply the "find" function by giving as argument the interval [7,12), the documentation says I'll get an iterator to the first intervall overlapping with the given interval. So the result should be [5,10).

Isn't there any way to have a pair of iterators (begin and end), as std::multimap::equal_range() ?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at