tmp/tmptxv1pq48/{from.md → to.md}
RENAMED
|
@@ -1,12 +1,16 @@
|
|
| 1 |
-
### Alignof <a id="expr.alignof">[[expr.alignof]]</a>
|
| 2 |
|
| 3 |
An `alignof` expression yields the alignment requirement of its operand
|
| 4 |
type. The operand shall be a *type-id* representing a complete object
|
| 5 |
type, or an array thereof, or a reference to one of those types.
|
| 6 |
|
| 7 |
-
The result is
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
When `alignof` is applied to a reference type, the result is the
|
| 10 |
alignment of the referenced type. When `alignof` is applied to an array
|
| 11 |
type, the result is the alignment of the element type.
|
| 12 |
|
|
|
|
| 1 |
+
#### Alignof <a id="expr.alignof">[[expr.alignof]]</a>
|
| 2 |
|
| 3 |
An `alignof` expression yields the alignment requirement of its operand
|
| 4 |
type. The operand shall be a *type-id* representing a complete object
|
| 5 |
type, or an array thereof, or a reference to one of those types.
|
| 6 |
|
| 7 |
+
The result is a prvalue of type `std::size_t`.
|
| 8 |
+
|
| 9 |
+
[*Note 1*: An `alignof` expression is an integral constant expression
|
| 10 |
+
[[expr.const]]. The type `std::size_t` is defined in the standard header
|
| 11 |
+
`<cstddef>` ([[cstddef.syn]], [[support.types.layout]]). — *end note*]
|
| 12 |
|
| 13 |
When `alignof` is applied to a reference type, the result is the
|
| 14 |
alignment of the referenced type. When `alignof` is applied to an array
|
| 15 |
type, the result is the alignment of the element type.
|
| 16 |
|