Inline function cannot be used in the for loop.
The role of the inline function inherits the advantages of macro definition, does not have parameter pressure stacks, code generation and other operations, and does not check compilation rules;
In addition, it should be noted that inline functions are generally used only when the function content is very simple. This is because the code of inline functions is expanded wherever it is called. If the function is too complex, the consequence of code expansion is likely to be greater than the benefits of efficiency improvement. The most important use of inline functions is for class access functions. Cause 1: inline is actually a macro replacement, that is, copying the binary code of the function directly to the called place. Therefore, inline code should not be redirected. The loop structure cannot avoid conditional jump, so the Code with loops cannot be inline; cause 2: The inline is to copy the code to the specified position, and a large amount of code will be copied in the loop; this can be considered by default that the inline function cannot be in the for loop. Http://bbs.csdn.net/topics/340149836