Boost logo

Boost :

From: Geurt Vos (G.Vos_at_[hidden])
Date: 2001-08-16 06:24:14


>
> The "perfect" syntax for a bound function is:
>
> f($2, $1)
>
> or
>
> f(%2, %1)
>
> depending on what skool you're from. [Likewise $1 + $2 for
> lambda(x, y)(x +
> y).]
>
> The closest I was able to get in C++ was
>
> bind(f, _2, _1).
>

I'm just wondering, what about something like:

        bind<2,4>(func,a,b)(x,y);

which will call:

        func(x,a,y,b);

Geurt


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