[libstdc++ PATH] tr1::bind support

Douglas Gregor doug.gregor@gmail.com
Mon Mar 21 01:41:00 GMT 2005


On Mar 20, 2005, at 7:01 PM, Giovanni Bajo wrote:

> Douglas Gregor <doug.gregor@gmail.com> wrote:
>
>> The attached patch introduces support for tr1::bind for libstdc++-v3
>
> Nice, thanks!
>
> One question: did you verify that GCC is able to produce nicely 
> optimized code
> for bind and function? If not, we should really file some enhancement 
> PRs in
> Bugzilla and have the tree-ssa experts have a look at those. IIRC, 
> bind should
> be zero overhead, and function should be just one indirect call.

I did not verify that GCC produces well-optimized code for either bind 
or function, but this would be a great idea. And you are correct, that 
with function objects bind should require no overhead and function 
should involve one call through a function pointer.

	Doug



More information about the Libstdc++ mailing list