This question already has an answer here:
inline was obsolete because I read here:
No matter how you designate a function as
inline, it is a request that the compiler is allowed to ignore: the compiler might inline-expand some, all, or none of the places where you call a function designated as
This question is not a question on:
- The historical use of
inlinecould still be used to hint to the compiler to
inlinefunctions: When should I write the keyword 'inline' for a function/method?.
- The benefits or drawbacks of inlining function code: Benefits of inline functions in C++?
- Forcing the compiler to
inlinefunction code: force inline function in other translation unit
Bearing in mind that the compiler can
inline at will, so
inline is not helpful there: Where can
inline be used to force, not suggest, a change in compiled code?