Function overload resolution (also known as function matching) is the process by which a function call is associated with a specific function from a set of overloaded functions.
函数重载确定,即函数匹配是将函数调用与重载函数集合中的一个函数相关联的过程。
To understand function overloading, we must understand how to define a set of overloaded functions and how the compiler decides which function to use for a given call.
要理解函数重载,必须理解如何定义一组重载函数和编译器如何决定对某一调用使用哪个函数。
Specifies that a declared programming element redeclares and hides an identically named element, or set of overloaded elements, in a base class.
指定已声明的编程元素重新声明并隐藏基类中的同名元素或重载元素集。
"C" linkage is specified for more than one function in a set of overloaded functions.
为一组重载函数中的多个函数指定了“C”链接。
When you set a breakpoint on an overloaded function, the location of the breakpoint depends on how you specify the function.
在对重载函数设置断点时,断点的位置取决于指定函数的方式。
For overloaded functions, you can specify the arguments to set the breakpoint correctly.
针对多载函式,您可以指定引数以便正确设定中断点。
The following illustration shows the process that determines which of a set of overloaded versions to call.
下图将说明决定要呼叫其中哪一组多载版本的程序。
The following illustration shows the process that determines which of a set of overloaded versions to call.
下图将说明决定要呼叫其中哪一组多载版本的程序。
应用推荐