answersLogoWhite

0


Best Answer

Outline is the opposite of inline. An inline expanded function is any function or class method where the declaration also provides the definition (the implementation). This is known as implicit inline expansion. Where the definition is kept separate from the declaration, you may use the inline keyword to specifiy that the function should be inline. This is known as explicit inline expansion.

Inline expanded functions (whether implied or explicit) does NOT mean the function will in fact be inline expanded. It is merely a suggestion to the compiler. If the compiler's optimisers determine that there is no advantage to be gained by inline expanding a particular function, then that function becomes an outline function.

Inline expansion simply means that the body of the function is inserted in place of the function call. Function calls are expensive in terms of memory and performance, so by eliminating the function call completely, your code performs faster and uses less memory. However, functions that are called many times throughout your code will result in a much larger code size, and large code runs slower than small code. Thus the benefit of eliminating a function call has to be weighed against the increased code size. Although some compilers do allow you to override the compiler's inline expansion optimisers, this is strictly non-standard. The best judge of what to expand and what not to expand is best left in the hands of the compiler, and indiscriminate use of the inline keyword should generally be avoided.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is outline function in c plus plus language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


How do you convert numeric value into alpha value in c plus plus programming language?

use the _itoa function


Difference between procedure and function in C or C plus plus or Java language?

In C there are functions only, In Java methodsonly (static methods as well), in C++ both.


What is swap in c plus plus programming language?

It is not a reserved word, so can be an identifier (name of a type/variable/function).


What is self referential function in c plus plus?

A self-referential function in C++, or in any other supporting language, is a recursive function.


What are the building function in c plus plus?

There is no such term as "building function" in C++.


What is the difference between C plus plus and the original language?

C++ is easier to use as you have to learn slightly less and script slightly to make your function(s) work.


In computer language C plus plus is related to?

C++ is related to C, the language from which it is derived.


What are the interpreter in c plus plus?

C++ is a compiled language, not an interpreted language.


Is c plus plus a complied or interpreted language?

C++ is generally a compiled language.


What is the differnce between ordinary function and template function of c language?

The c language does not have template functions. That is a c++ thing.


Is C plus plus a high level language?

Yes, C++ is a high-level language.