Abstraction Mechanisms, Part 1
- slide 25 : 36
Inline member functions
In C++ the programmer can ask for inlining of functions
The C++ Programming Language
: Page 235, 144, 199
Inline functions
An efficiency concern
A plea to the compiler - not a requirement
Inline functions must be
defined
in every translation unit where they are used
Inline functions can be defined in header files
Some functions cannot easily be inlined
Recursive functions
Member functions defined inside class definitions are implicitly marked as inlined