How to write a global inline function
First, let's get away from member functions for a moment and consider a global function. To make a request that this function be in line:
- Precede the return type of the function with the keyword inline.
- Write the function body (the explanation, not just the declaration) before any calls to that function.