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
Post a Comment