More Exceptional C++: 40 New Engineering Puzzles, Programming Problems, and Solutions

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

Категории