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 <> 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

Boost list run by bdawes at, gregod at, cpdaniel at, john at