Lecture overview -- Keyboard shortcut: 'u'  Previous page: Object Self-reference -- Keyboard shortcut: 'p'  Next page: Concrete classes -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 3 - Page 25 : 36
Notes about C++
Abstraction Mechanisms, Part 1
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