Boost logo

Boost :

Subject: Re: [boost] [Review:Algorithms] is_ordered name
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2011-09-24 12:07:19


On Sep 24, 2011, at 6:12 AM, Andrew Sutton wrote:
> On a side note, I think the algorithm can be trivially implemented
> using adjacent_find, and should have the same iterator requirements.
>
> return adjacent_find(f, l, not2(pred));

Yes, it can - but that places requirements on the predicate that the current implementation does not.

-- Marshall

Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki


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