Lecture 4 - Slide 29 : 40
Inline member functions
In C++ the programmer can ask for inlining of functions
The C++ Prog. Lang. (3. edition)
:
Page 235, 144, 199
The C++ Prog. Lang. (4. edition)
: Page 307, 310
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