From Jason Turner

[expr.prim.pack.index]

Diff to HTML by rtfpessoa

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