定义在类内部的成员函数都是自动inline的,那么如果成员函数里调用了外部的函数,会怎样呢? 会将这个外部函数也内联展开,还是执行压栈保护现场这些操作来调用这个外部函数呢?
认证0级讲师
Saying that a function is inline means that it will be expanded at the place where it is called (in other functions), rather than expanding calls to other functions within this function.
Saying that a function is inline means that it will be expanded at the place where it is called (in other functions), rather than expanding calls to other functions within this function.