Boost logo

Boost :

Subject: Re: [boost] [Review:Algorithms] is_ordered name
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-24 14:27:06


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk