inline, noinline, forceinline
Specifies inlining of all calls in a statement. This also describes pragmas forceinline and noinline.
- Indicates that the pragma applies to all of the calls that are called by these calls, recursively, down the call chain.
These are statement-specific inlining pragmas. Each can be placed before a C/C++ statement, and it will then apply to all of the calls within a statement and all calls within statements nested within that statement.
forceinlinepragma indicates that the calls in question should be inlined whenever the compiler is capable of doing so.
inlinepragma is a hint to the compiler that the user prefers that the calls in question be inlined, but expects the compiler not to inline them if its heuristics determine that the inlining would be overly aggressive and might slow down the compilation of the source code excessively, create too large of an executable, or degrade performance.
noinlinepragma indicates that the calls in question should not be inlined.
These statement-specific pragmas take precedence over the corresponding function-specific pragmas.
Example: Using the