<< C ++ Primer >> Chapter 6 Functions

Glossary

Chapter 6 Functions

: Ambiguous call (ambiguous call) as a function of good matches as matching two or more functions are provided when a compile-time error occurs, the cause of ambiguous calls, the compiler can not find the single most good match.
  
Arguments (argument): the value provided by the function call, for parameter initialization functions.
  
Assert: a preprocessor macros, in effect indicates a condition expression. When the pre-defined traverse NDEBUG, assert evaluate the conditional. If the condition is false, output an error message and terminates the execution of the current program.
  
Automatic object (automatic object): it exists only during the execution of the function of the object. When the control flow of the program through the defining statement of such objects, the object is created; when it reaches the end of the block where define, destroy the object.
  
Best match (best match): a function from a set of overloaded functions for the selected call. If there is the best match, then the selected function compared to all other possible functions, and more preferably at least at the time of a match on the argument, and does not match the other argument worse.
  
Call by reference (call by reference): see reference.
  
By value call (call by value): See the value passed.
  
Candidate functions (candidate function): a set of functions to consider when resolving a particular function call. Candidate should call the name of the function name consistent with the use of function, and function in the call statement of the candidate points within the scope of.
  
constexpr: you can return a constant expression function, a function is implicitly constexpr declared as inline functions.
  
The default argument (defalut argument):When they call the lack of an argument, the argument for the default value specified.
  
Executable file (executable file): is able to perform an operating system file that contains the code for the proceedings.
  
Function (function): calculating means callable.
  
Function body (function body): is a block for performing the operation definition function.
  
Matching function (function matching): the compiler parsing function call overload, in this process, a listing of each parameter involved in the real function overloading by-side comparison.
  
The function prototype (function prototype): declaration of the function, the function comprising the name, return type and argument types. To call a function, you must declare the function prototype before calling point.
  
Hide name (hidden name): the name of the domain declaration of a role will hide the role of the outer layer of the same name entity declaration domain.
  
initalizer_list: it is a standard class, represents a group of the same type as the object surrounded braces, separated by commas between objects.
  
Inline function (inline function): requesting compiler to expand the possible function call sites. Inline functions to avoid common function call overhead.
  
Link (link): is a compilation process, responsible for several objects linked together to form an executable program file.
  
Local static objects (local static object): its value still exists at the end of the function call. Creates and initializes it before the first use local static objects, when the program ends local static object will be destroyed.
  
No matching (no match):Argument is matching a compile-time error occurs, the reasons for all parameter functions are not provided in the function call with the matching process.
  
Object code (object code): compiler converts the source code into our object code format.
  
Object file (object file): compiler generates object files saved in accordance with a given source. After one or more object files linked to produce an executable file.
  
Object life cycle (object lifetime): Each object has a corresponding life cycle. Defined within the block life cycle of non-static object from its definition to start, until the end of the block is defined. After the program starts to create global object is created when the local static objects defined in partial local static objects through the program control flow; the destruction of global objects and local static objects When the main function.
  
Determined overload (overload resolution): See matching function.
  
Overloaded function (overload function): function name the same function with other functions. A plurality of overloaded functions must differ in the amount or shape parameters of the parameter type.
  
Parameter (parameter): local variables declared in a category parameter function. With initialization parameter arguments.
  
Reference transmission (pass by reference): Describes how the argument of the bed to the parameter reference type. Reference parameter references and other similar forms of working mechanism, a parameter is bound to a respective copy of the argument values.
  
Value passed (pass by value): Describes how the argument to the non-reference type of parameter. A non-reference type is actually a copy of the parameter when the corresponding argument values.
  
Preprocessor macro (perprocessor macro):Preconditioned similar function inline function. In addition to assert, modern C ++ programs rarely use the preprocessor macros.
  
Recursive loop (recurision loop): describe a recursive Han Su is no termination condition, which calls itself continuously until the process runs out of stack space program.
  
Recursive function (recurision function): direct or indirect function calls itself.
  
Return type (return type): is a part of the function declaration specifies the type of the function return value.
  
Separate compilation (separate compilation): the ability of a program into a plurality of separate source files.
  
Tail return type opposite (trailing return type): Returns the type specified in the parameter categories behind.
  
Viable function (viable function): a subset of candidate functions. Viable function matches this call, the parameter is equal to the amount of solid in an amount of his calling-size parameter provided, and each seems to be can be converted to the corresponding parameter type from the type.
  
() Operator (() operator): call operator for performing a function. Or in front of the function name in parentheses is the function pointer in the parentheses is a comma-separated argument list (possibly empty).
  

Guess you like

Origin www.cnblogs.com/isChenJY/p/11460801.html