Boost logo

Boost Users :

Subject: Re: [Boost-users] Why use 'functional composition' with boost::bind
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-08-03 13:12:09


AMDG

Wolfram Brenig wrote:
> -----------------------
> Now, my question is, if such nested construction of functors
> at the call site, which is suggested also in the 'Bind Summary'
> in Karlsson's book, will actually lead to code which has no
> relevant performance loss as compared to 'old-style' for-loops?
> <snip>
> bind(multiplies<double>(),bind(sin,_1),bind(sin,_1)),
> bind(multiplies<double>(),bind(cos,_1),bind(cos,_1))
>

These calls to sin and cos are through function pointers.

In Christ,
Steven Watanabe


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