tmp/tmpw3vz5adf/{from.md → to.md}
RENAMED
|
@@ -1,19 +1,23 @@
|
|
| 1 |
### Alignment specifier <a id="dcl.align">[[dcl.align]]</a>
|
| 2 |
|
| 3 |
An *alignment-specifier* may be applied to a variable or to a class data
|
| 4 |
member, but it shall not be applied to a bit-field, a function
|
| 5 |
-
parameter,
|
| 6 |
-
|
| 7 |
-
*alignment-specifier* may also be applied to the declaration
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
When the *alignment-specifier* is of the form `alignas(`
|
| 12 |
-
*
|
| 13 |
|
| 14 |
-
- the *
|
| 15 |
- if the constant expression evaluates to a fundamental alignment, the
|
| 16 |
alignment requirement of the declared entity shall be the specified
|
| 17 |
fundamental alignment
|
| 18 |
- if the constant expression evaluates to an extended alignment and the
|
| 19 |
implementation supports that alignment in the context of the
|
|
|
|
| 1 |
### Alignment specifier <a id="dcl.align">[[dcl.align]]</a>
|
| 2 |
|
| 3 |
An *alignment-specifier* may be applied to a variable or to a class data
|
| 4 |
member, but it shall not be applied to a bit-field, a function
|
| 5 |
+
parameter, an *exception-declaration* ([[except.handle]]), or a
|
| 6 |
+
variable declared with the `register` storage class specifier. An
|
| 7 |
+
*alignment-specifier* may also be applied to the declaration or
|
| 8 |
+
definition of a class (in an *elaborated-type-specifier* (
|
| 9 |
+
[[dcl.type.elab]]) or *class-head* (Clause [[class]]), respectively)
|
| 10 |
+
and to the declaration or definition of an enumeration (in an
|
| 11 |
+
*opaque-enum-declaration* or *enum-head*, respectively ([[dcl.enum]])).
|
| 12 |
+
An *alignment-specifier* with an ellipsis is a pack expansion (
|
| 13 |
+
[[temp.variadic]]).
|
| 14 |
|
| 15 |
When the *alignment-specifier* is of the form `alignas(`
|
| 16 |
+
*constant-expression* `)`:
|
| 17 |
|
| 18 |
+
- the *constant-expression* shall be an integral constant expression
|
| 19 |
- if the constant expression evaluates to a fundamental alignment, the
|
| 20 |
alignment requirement of the declared entity shall be the specified
|
| 21 |
fundamental alignment
|
| 22 |
- if the constant expression evaluates to an extended alignment and the
|
| 23 |
implementation supports that alignment in the context of the
|