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


Hello,

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 hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net