Today from Andrzej:
Inline Functions
by Andrzej Krzemieński
From the article:
Inlining functions can improve or worsen your program’s performance (however you define ‘performance’). It has been described in detail in Herb Sutter’s GotW #33. Compiler can decide to inline your function, even if it was not declared
inline
and conversely: it can decide not to inline it even if it is declaredinline
. So, you might be tempted to think that declaring functions as inline has no useful portable meaning in C++. This is not so. I have found inline functions useful, and its usefulness has nothing to do with inlining...
Add a Comment
Comments are closed.