First, C ++ has the inline , but not _inline . Is _inline macro? Extension for the compiler? Is something related to your profiler?
Secondly, the C ++ compiler usually builds whatever he likes, and the inline is, at best, a hint that you would like to see this function nested.
The main purpose of the inline today is not so much to enable inlining optimization (which the compiler is pretty aggressive in applying, tell you), but instead to suppress the definition rule (ODR) so that the function can be fully defined in the header without risking a few definition errors from the linker.
source share