Inline functions in C++ allow the compiler to paste the function code directly where the function is called, rather than generating a call to a function definition elsewhere. Inline functions can improve performance by reducing compilation time and function call overhead. However, functions containing loops may not be expanded inline and will generate a warning, as loop variables have dynamic rather than static values. To resolve this, the function can be declared outside the class using the scope resolution operator.