|
Boost : |
Subject: Re: [boost] [Probing interest] -- automatization of writing predicates.
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2010-11-18 14:58:06
Dean Michael Berris wrote:
> On Thu, Nov 18, 2010 at 9:27 PM, Petr PilaÅ <email_at_[hidden]> wrote:
>> Hi folks,
>> I often find myself in a situation where I need a simple comparison predicate
>> for filtering, look-up, etc. Writing such predicates can get tedious over time
>> and adds unnecessary "bloat", especially when you use the predicate only once.
>>
>
> Not sure how your solution is better than using Boost.Phoenix or Boost.Lambda.
>
> Can you explain what's the difference?
or even:
bind(&ClassName::getter, _1) == compareWithMe
bind IIRC, supports all of the comparison operators.
Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk