Inlining is an optimization technique. Look it up in Google and then come back if you have doubts about what you read about it. Look up "c++ inline". The same works for other C++ keywords you may not understand.
function specifier inline is a recommendation to the compiler to inline the body of the function at the point where it is called.
In your example the compiler can inline the function without your recommendation. So the both examples can be totally equivalent.:)