compose function objects

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

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
participants (2)
-
daniel szymanski
-
Douglas Gregor