tmp/tmp6jsbaong/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Pack indexing specifier <a id="dcl.type.pack.index">[[dcl.type.pack.index]]</a>
|
| 2 |
+
|
| 3 |
+
``` bnf
|
| 4 |
+
pack-index-specifier:
|
| 5 |
+
typedef-name '...' '[' constant-expression ']'
|
| 6 |
+
```
|
| 7 |
+
|
| 8 |
+
The *typedef-name* P in a *pack-index-specifier* shall denote a pack.
|
| 9 |
+
|
| 10 |
+
The *constant-expression* shall be a converted constant expression
|
| 11 |
+
[[expr.const]] of type `std::size_t` whose value V, termed the index, is
|
| 12 |
+
such that 0 ≤ V < `sizeof...($P$)`.
|
| 13 |
+
|
| 14 |
+
A *pack-index-specifier* is a pack expansion [[temp.variadic]].
|
| 15 |
+
|
| 16 |
+
[*Note 1*: The *pack-index-specifier* denotes the type of the Vᵗʰ
|
| 17 |
+
element of the pack. — *end note*]
|
| 18 |
+
|