|
Boost : |
Subject: Re: [boost] [Review:Algorithms] My review of Boost.Algorithm
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2011-09-30 13:37:16
On Sep 30, 2011, at 9:39 AM, lcaminiti wrote:
> Marshall Clow-2 wrote:
>>> 9) [WANT] Are these examples from the docs incorrect? (What's 3, 9, etc?)
>>>
>>> one_of ( c.begin (), c.end (), 3 ) --> true
>>> one_of ( c, 3 ) --> true
>>> none_of ( c, 9 ) --> true
>>> any_of ( c.begin (), c.end (), 9 ) --> false
>>
>> Right before these examples is:
>> Examples: Given the container c containing { 0, 1, 2, 3, 4, 5 }, then
>>
>> I guess I need to make that more noticeable.
>>
>
> I meant, don't you need a predicate here instead of 3, 9, etc?
D'oh!
[ Actually, I meant those to be calls to the value-based versions ]
Thanks.
-- 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