We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 401e559 + 6d17f76 commit 3b5a851Copy full SHA for 3b5a851
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 and only if their count `N` is zero or their
31
+element type `T` is zero-sized.
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