We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97cbda4 commit b06626eCopy full SHA for b06626e
reference/src/layout/arrays-and-slices.md
@@ -25,6 +25,11 @@ The _stride_ of the array is constant for all element pairs and it is computed
25
as the _size_ of the element type rounded up to the next multiple of the
26
_alignment_ of the element type.
27
28
+### Arrays of zero-size
29
+
30
+Arrays `[T; N]` have zero size if their count `N` is zero, or their element `T`
31
+has zero-size.
32
33
### Special case `stride == size`
34
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
53
The [layout of packed SIMD vector types][Vector] [^2] requires the _size_ and
0 commit comments