File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ The _stride_ of the array is constant for all element pairs and it is computed
25
25
as the _ size_ of the element type rounded up to the next multiple of the
26
26
_ alignment_ of the element type.
27
27
28
+ ### Arrays of zero-size
29
+
30
+ Arrays ` [T; N] ` have zero size if and only if their count ` N ` is zero or their
31
+ element type ` T ` is zero-sized.
32
+
28
33
### Special case ` stride == size `
29
34
30
35
When the element _ size_ is a multiple of the element's _ alignment_ , then `stride
@@ -42,6 +47,7 @@ pointer to the first element of the array by `i`[^1].
42
47
43
48
[ layout of structs and tuples ] : ./structs-and-tuples.md
44
49
50
+
45
51
### Layout compatibility with packed SIMD vectors
46
52
47
53
The [ layout of packed SIMD vector types] [ Vector ] [ ^ 2 ] requires the _ size_ and
You can’t perform that action at this time.
0 commit comments