Item 12. inline

I l @ ve RuBoard

Item 12. inline

Difficulty: 4

Contrary to popular opinion, the keyword inline is not some sort of magic bullet. It is, however, a useful tool when employed properly. The question is: When should you use it?

  1. What does inline do?

  2. Does making a function inline increase efficiency?

  3. When and how should you decide to inline a function?

I l @ ve RuBoard


More Exceptional C++
More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions
ISBN: 020170434X
EAN: 2147483647
Year: 2001
Pages: 118
Authors: Herb Sutter

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net