c++ - inline functions within an inline function -


for following function:

inline void a() {    ...    b();    ... } 

is b inlined compiler?

if not, should make b inline increase performance?

no, inline keywords cause code inlined inside caller code. not affect inlining of b.

besides this, in c++, inline keyword hint compiler, allowed ignore it. modern compilers decide when functions need inlined, if keyword not used.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -