A great explanation of why we need the inline
specifier.
So, what is the actual purpose of the
inline
keyword? It's simple: a function markedinline
can be defined in more than one translation unit without violating the One Definition Rule (ODR).