January 2018
Intermediate to advanced
374 pages
9h 53m
English
When it comes to lambda functions, the compiler has the ability to inline the function call, that is, the overhead of the function call is eliminated. The flexible design of std::function make it nearly impossible for the compiler to inline a function wrapped in a std::function. This overhead can have an impact on the performance if small functions wrapped in std::function are being called very frequently.