tmp/tmpiwfy2rl5/{from.md → to.md}
RENAMED
|
@@ -1,15 +1,26 @@
|
|
| 1 |
### Function parameter scope <a id="basic.scope.param">[[basic.scope.param]]</a>
|
| 2 |
|
| 3 |
-
A
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
the
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
|
|
|
| 1 |
### Function parameter scope <a id="basic.scope.param">[[basic.scope.param]]</a>
|
| 2 |
|
| 3 |
+
A *parameter-declaration-clause* P introduces a
|
| 4 |
+
*function parameter scope* that includes P.
|
| 5 |
+
|
| 6 |
+
[*Note 1*: A function parameter cannot be used for its value within the
|
| 7 |
+
*parameter-declaration-clause* [[dcl.fct.default]]. — *end note*]
|
| 8 |
+
|
| 9 |
+
- If P is associated with a *declarator* and is preceded by a
|
| 10 |
+
(possibly-parenthesized) *noptr-declarator* of the form
|
| 11 |
+
*declarator-id* *attribute-specifier-seq*ₒₚₜ , its scope extends to
|
| 12 |
+
the end of the nearest enclosing *init-declarator*,
|
| 13 |
+
*member-declarator*, *declarator* of a *parameter-declaration* or a
|
| 14 |
+
*nodeclspec-function-declaration*, or *function-definition*, but does
|
| 15 |
+
not include the locus of the associated *declarator*. \[*Note 2*: In
|
| 16 |
+
this case, P declares the parameters of a function (or a function or
|
| 17 |
+
template parameter declared with function type). A member function’s
|
| 18 |
+
parameter scope is nested within its class’s scope. — *end note*]
|
| 19 |
+
- If P is associated with a *lambda-declarator*, its scope extends to
|
| 20 |
+
the end of the *compound-statement* in the *lambda-expression*.
|
| 21 |
+
- If P is associated with a *requirement-parameter-list*, its scope
|
| 22 |
+
extends to the end of the *requirement-body* of the
|
| 23 |
+
requires-expression.
|
| 24 |
+
- If P is associated with a *deduction-guide*, its scope extends to the
|
| 25 |
+
end of the *deduction-guide*.
|
| 26 |
|