Functions
Inline functions
- Functions can be implicitly inline by
defining them in the
header file, or they can be explicitly inline by using the "inline"
keyword.
- Inline functions are generally small
functions, getters and
setters, and message passing methods.
- There is no guarantee that a function
will actually wind up
being inline.
Default function-arguments
- Do not put default values in a function
definition unless there
is no declaration.
- Do not put default values in a function definition unless there is no declaration.