Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-07-06 06:00:48


From: <fkoh_at_[hidden]>
> I propose additions to the compose library to allow
>
> (iterator_proxy<int>()>4) && (iterator_proxy<int>()<7)
>
> as another way of writing
>
> compose_f_gx_hx(logical_and<bool>(),bind2nd(greater<int>(),4),bind2nd
> (less<int>(),7))

See http://lambda.cs.utu.fi that allows you to express the above as

free1 > 4 && free1 < 7

Depending on the compiler you're using, if Lambda doesn't work for you, you
may try my 'expression' library (in the Files area.)

--
Peter Dimov
Multi Media Ltd.

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