Boost logo

Boost Users :

Subject: Re: [Boost-users] [Multi-Index] Get container view of a non-unique-index equal_range?
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2009-06-12 10:20:18


On Thu, Jun 11, 2009 at 5:58 PM, Steven Watanabe<watanabesj_at_[hidden]> wrote:
> AMDG
>> Dominique Devienne wrote:
>> That's two equal_range lookups everytime to iterate the range. I was
>> hoping that B.MI had some kind of "logical" begin-range, end-range
>> iterators that adjusted themselves automatically upon inserts and
>> updates in fact. Am I in luck and using an ordered_non_unique index
>> give me that? Maybe in 1.40 ;-) --DD
>
> No.  I don't think that multi_index can support this easily.
> <snip>
> And I'll stop here as I've already spent way too much time thinking about this.

Thank you for your time. Your suggestion to dynamically access the
range on demand sounds like the only viable way to implement this
equal_range view, thanks again. Best regards, --DD


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