1) inline may be the targetCodeIncrement or decrease, depending on the size of the function to be inline.
2) inline functions that contain loops or switch statements are not worth the candle.
3) virtual and recursive functions cannot be declared as inline functions. Because the virtual function must take the address and virtual function pointer vptr in the inheritance system. Inline functions have no memory address.
4) destructor generally contain hidden code and cannot be inline. That is to say, the Destructor is defined in the. h file of the class definition with caution.
5) The Declaration and definition of function templates and class templates must be included in the header file. Otherwise, a connection error occurs.
6) The global function definition cannot be placed in the header file. Otherwise, multiple definition errors may occur when multiple implementation files contain the header file. You can declare a global function as an inline function, so that the function body can be defined in the header file.