通过自动提取函数调用中实际使用的实参与重载集合中各个函数提供的形参做比较,编译器实现该调用与函数的匹配。
The compiler matches a call to a function automatically by comparing the actual arguments used in the call with the parameters offered by each function in the overload set.
这里所谓“最佳”的细节将在下一节中解释,其原则是实参类型与形参类型越接近则匹配越佳。
The details of "best" here will be explained in the next section, but the idea is that the closer the types of the argument and parameter are to each other, the better the match.
这里所谓“最佳”的细节将在下一节中解释,其原则是实参类型与形参类型越接近则匹配越佳。
The details of "best" here will be explained in the next section, but the idea is that the closer the types of the argument and parameter are to each other, the better the match.
应用推荐