tmp/tmpbr6navmo/{from.md → to.md}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
| 1 |
#### Deducing template arguments taking the address of a function template <a id="temp.deduct.funcaddr">[[temp.deduct.funcaddr]]</a>
|
| 2 |
|
| 3 |
Template arguments can be deduced from the type specified when taking
|
| 4 |
-
the address of an
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
|
| 10 |
A placeholder type [[dcl.spec.auto]] in the return type of a function
|
| 11 |
template is a non-deduced context. If template argument deduction
|
| 12 |
succeeds for such a function, the return type is determined from
|
| 13 |
instantiation of the function body.
|
|
|
|
| 1 |
#### Deducing template arguments taking the address of a function template <a id="temp.deduct.funcaddr">[[temp.deduct.funcaddr]]</a>
|
| 2 |
|
| 3 |
Template arguments can be deduced from the type specified when taking
|
| 4 |
+
the address of an overload set [[over.over]]. If there is a target, the
|
| 5 |
+
function template’s function type and the target type are used as the
|
| 6 |
+
types of `P` and `A`, and the deduction is done as described in
|
| 7 |
+
[[temp.deduct.type]]. Otherwise, deduction is performed with empty sets
|
| 8 |
+
of types `P` and `A`.
|
| 9 |
|
| 10 |
A placeholder type [[dcl.spec.auto]] in the return type of a function
|
| 11 |
template is a non-deduced context. If template argument deduction
|
| 12 |
succeeds for such a function, the return type is determined from
|
| 13 |
instantiation of the function body.
|