
24 Sep
2011
24 Sep
'11
6:27 p.m.
on Sat Sep 24 2011, Brent Spillner <spillner-AT-acm.org> wrote:
There is of course a convenience counterargument, that for ForwardIterators it's easier to compute the value of 'next' (if that's what you really want) given the value of 'last' than it is to compute the value of 'last' from the value of 'next', and that's probably what Marshall had in mind.
Yeah, that's more than just an issue of convenience: it's about capability. There's a principle at work here: "don't throw away useful information." <== That statement of course presumes that knowing the position of the last ordered element is useful. -- Dave Abrahams BoostPro Computing http://www.boostpro.com