What is an inline function?
In C++, the inline keyword serves two main purposes:
One Definition Rule (ODR) Exception
Compiler Optimization Hint
Let’s unpack what that means, see some examples, and discuss best practices.
1. Why inline Exists
1.1 One Definition Rule Excepti...
piggyfarm.hashnode.dev3 min read