The inline keyword is used to give a function inline linkage. This means that it can have identical definitions in more than one compilation unit, by placing the definition in a header file, without giving link errors (as external linkage would) or resulting in duplicated code after linking (as static linkage would).
This is necessary if you want it to be considered for inlining: most compilers can only inline functions defined in the current compilation unit.
Some compilers might possibly use it as a hint to influence the decision on whether to inline the function, but that's entirely up to the compiler.
Mike Seymour
2010-07-09 15:28:01