tmp/tmp3ayg6skx/{from.md → to.md}
RENAMED
|
@@ -2,17 +2,21 @@
|
|
| 2 |
|
| 3 |
[*Note 1*: Each of two or more entities with the same name in the same
|
| 4 |
scope, which must be functions or function templates, is commonly called
|
| 5 |
an “overload”. — *end note*]
|
| 6 |
|
| 7 |
-
When a function is
|
| 8 |
-
referenced and the validity of the call are determined by
|
| 9 |
-
types of the arguments at the point of use with the types
|
| 10 |
-
parameters in the declarations in the overload set. This function
|
| 11 |
selection process is called *overload resolution* and is defined in
|
| 12 |
[[over.match]].
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
[*Example 1*:
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
double abs(double);
|
| 18 |
int abs(int);
|
|
|
|
| 2 |
|
| 3 |
[*Note 1*: Each of two or more entities with the same name in the same
|
| 4 |
scope, which must be functions or function templates, is commonly called
|
| 5 |
an “overload”. — *end note*]
|
| 6 |
|
| 7 |
+
When a function is designated in a call, which function declaration is
|
| 8 |
+
being referenced and the validity of the call are determined by
|
| 9 |
+
comparing the types of the arguments at the point of use with the types
|
| 10 |
+
of the parameters in the declarations in the overload set. This function
|
| 11 |
selection process is called *overload resolution* and is defined in
|
| 12 |
[[over.match]].
|
| 13 |
|
| 14 |
+
[*Note 2*: Overload sets are formed by *id-expression*s naming
|
| 15 |
+
functions and function templates and by *splice-expression*s designating
|
| 16 |
+
entities of the same kinds. — *end note*]
|
| 17 |
+
|
| 18 |
[*Example 1*:
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
double abs(double);
|
| 22 |
int abs(int);
|