What Does It Mean For a C++ Function To Be Inline?
问题 See title: what does it mean for a C++ function to be inline? 回答1: The function is placed in the code, rather than being called, similar to using macros (conceptually) This can improve speed (no function call), but causes code bloat (if the function is used 100 times, you now have 100 copies) You should note this does not force the compiler to make the function inline, and it will ignore you if it thinks its a bad idea. Similarly the compiler may decided to make normal functions inline for