内联函数 - C++中定义在类内的成员函数调用外部函数还是inline的吗?
PHP中文网
PHP中文网 2017-04-17 11:57:04
0
1
554

定义在类内部的成员函数都是自动inline的,那么如果成员函数里调用了外部的函数,会怎样呢?
会将这个外部函数也内联展开,还是执行压栈保护现场这些操作来调用这个外部函数呢?

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
洪涛

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!