|
Boost : |
Subject: Re: [boost] [intrusive.set] Accessing the last (largest) element.
From: Andy Venikov (avenikov_at_[hidden])
Date: 2010-04-15 15:46:11
Ion Gaztañaga wrote:
> On 15/04/2010 16:34, Andy Venikov wrote:
>> Since there is no "back" method for intrusive set,
>> what's the best way to access the last (greatest) element?
>>
>> Is this OK:?
>
> Yes, what about rbegin()?
Yup, rbegin will work. But I already have a range (begin<-->end), and
just need to access the last element in the range.
>
> Best,
>
> Ion
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>
Thanks,
Andy.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk