cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Inline Functions Question.
Inline Functions Question.
Oct 22, 2015 at 10:27am UTC
Wulfinite
(60)
Will the compiler always insert the body of inline functions where they are called in code?
Oct 22, 2015 at 11:02am UTC
MiiNiPaa
(8886)
No. it can decide to not to if it would hamper perfomance and provide no benefits. On the other hand it can inline even function which are not declared inline if it thinks it would help.
inline keyword is a request, not an order.
Topic archived. No new replies allowed.