(1) In C++, a member function defined in the class declaration. (2) A function call that the compiler replaces with the actual code for the function. The keyword inline can be used to hint to the compiler to perform inline expansion of the body of a member or nonmember function.
A function whose code is copied in place of each function call.
a function which gets textually inserted by the compiler, much like a macro
a function whose code gets inserted into the caller's code stream
a hint to the compiler that rather call a function the code can be placed directly where the call was made
an expanded version of the function declaration within the class with begin and end braces surronding the inline statement(s)
a regular function with a suggestion to the compiler to insert the instructions at the points where the function is called
In C++, inlining is a hint to the compiler to perform inline expansion of the body of a function member. Functions declared and defined simultaneously in a class definition are inline. You can also explicitly declare a function inline by using the keyword inline. Both member and nonmember functions can be inlined.
a function for which the compiler replaces a call to the function with the code for the function itself.
In computer science, an inline function is a programming language construct used to suggest to a compiler that a particular function be subjected to in-line expansion; that is, it suggests that the compiler insert the complete body of the function in every context where that function is used.