Does the compiler inline the predicate functions to std.algorithm.sort?

Radu rad.racariu at gmail.com
Sun Mar 18 13:13:07 UTC 2018


On Sunday, 18 March 2018 at 12:59:06 UTC, tipdbmp wrote:
> I can't read assembly but it seems to me that it doesn't: 
> https://godbolt.org/g/PCsnPT
> I think C++'s sort can take a "function object" that can get 
> inlined.

add "-O3" also to the compiler switches.


More information about the Digitalmars-d-learn mailing list