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 -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -