C++ can compilers inline a function pointer?
Sure thing. It knows the value of function is the same as the value it passes it, knows the definition of the function, so just replaces the definition inline and calls the function directly. I can’t think of a condition where a compiler won’t inline a one-line function call, it’s just replacing a function call … Read more