3 ms·
There are improved template magic versions of std::function that do not inhibit inlining for stateless lambdas passed directly thanks to additional magic. At w
by AstralStorm 10y ago
There are improved template magic versions of std::function that do not inhibit inlining for stateless lambdas passed directly thanks to additional magic.
At worst the overhead is a function call anyway and inhibition of inlining in the error path. Generally nothing to worry about.
- hellofunk 10y ago> There are improved template magic versions of std::function But not in the standard library. Of course, in C++, you can do anything if you venture outside the standard.