Inline function 1. A function prefixed by the keyword inline or defined within the body of the 2. 3. 4. 5. 6.
class is called inline function. All the inline function calls are replaced by the code of the inline functions before the code is compiled. An advantage of using inline functions is that the code runs fast as the code will be available at the place where required. Inline function works very similar to the macros in C language. By default all the member functions defined within the body of the class are treated as inline functions.