Boost logo

Boost Users :

From: Douglas Gregor (gregod_at_[hidden])
Date: 2002-11-11 18:47:43


On Monday 11 November 2002 04:10 pm, daniel szymanski wrote:
> hi,
>
> i've a question regarding the compose function objects. i was wondering
> if there is something like compose_f_x_gy etc? i know there's only the
> compose_f_gx_hy function object. but then i would need g(x) = x, so my
> question: is there another way to get the same result like using g(x) =
> x or writing a compose_f_x_gx?
>
> thanks, daniel

Boost.Bind can do that:

  boost::bind(f, _1, boost::bind(g, _2))

        Doug


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net