tmp/tmppvy0mfgy/{from.md → to.md}
RENAMED
|
@@ -1,19 +1,17 @@
|
|
| 1 |
## Preamble <a id="over.pre">[[over.pre]]</a>
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
function template declarations can be overloaded; variable and type
|
| 7 |
-
declarations cannot be overloaded.
|
| 8 |
|
| 9 |
-
When a function
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
|
| 16 |
[*Example 1*:
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
double abs(double);
|
|
|
|
| 1 |
## Preamble <a id="over.pre">[[over.pre]]</a>
|
| 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 named in a call, which function declaration is being
|
| 8 |
+
referenced and the validity of the call are determined by comparing the
|
| 9 |
+
types of the arguments at the point of use with the types of the
|
| 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);
|