|
Boost : |
From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-01-08 13:55:32
David Abrahams wrote:
>
> ----- Original Message -----
> From: "Jens Maurer" <Jens.Maurer_at_[hidden]>
> > erase(rbegin().base())
>
> I don't think so. Isn't rbegin().base() the same as end()?
Yes, indeed.
> How about erase(boost::prior(end()))?
Much better. This always assumes that size() > 0, of course.
Jens Maurer
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk