inline [C++ Reference]
Keywords: keywords,inline
Date: 2009-02-26T08:56:23-0800

[[inline]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- fr
- it
- jp
- pl
- ru
- tr

## inline

Syntax:

        inline int functionA( int a ) {
        ...
        }

The inline keyword requests that the compiler expand a given function in place, as opposed to inserting a call to that function. The inline keyword is a request, not a command, and the compiler is free to ignore it for whatever reason.

When a function definition is included in a class definition, the compiler should try to automatically inline that function. No inline keyword is necessary in this case.

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •