C++ ISO standard says, that:
\"A function defined within a class definition is an inline function.\"
Are there any compilers that IGNORE th
Compiler's usually inline based on the number of calls to the function, the number of pseudo-instructions in the function, and a bunch of other things. Take a look at the GCC documentation on optimization options for an idea of how it does things. Basically, the inline
keyword is just a hint that bumps up the likelihood that the compiler will inline. The actual decision to inline is usually complex.