inline function inside class c++ code example
Example: inline in class in C++
Inline Member Functions (C++)
A member function that is both declared and defined in the class member list is called an inline member function. Member functions containing a few lines of code are usually declared inline.