|
80 | 80 | the \grammarterm{attribute-specifier-seq} are thereafter considered attributes of the class
|
81 | 81 | whenever it is named.
|
82 | 82 |
|
| 83 | +\pnum |
| 84 | +If a \grammarterm{class-head-name} contains a \grammarterm{nested-name-specifier}, |
| 85 | +the \grammarterm{class-specifier} shall refer to a class that was |
| 86 | +previously declared directly in the class or namespace to which the |
| 87 | +\grammarterm{nested-name-specifier} refers, |
| 88 | +or in an element of the inline namespace set\iref{namespace.def} of that namespace |
| 89 | +(i.e., not merely inherited or |
| 90 | +introduced by a \grammarterm{using-declaration}), and the |
| 91 | +\grammarterm{class-specifier} shall appear in a namespace enclosing the |
| 92 | +previous declaration. |
| 93 | +In such cases, the \grammarterm{nested-name-specifier} of the |
| 94 | +\grammarterm{class-head-name} of the |
| 95 | +definition shall not begin with a \grammarterm{decltype-specifier}. |
| 96 | + |
83 | 97 | \pnum
|
84 | 98 | If a class is marked with the \grammarterm{class-virt-specifier} \tcode{final} and it appears
|
85 | 99 | as a \grammarterm{class-or-decltype} in a \grammarterm{base-clause}\iref{class.derived},
|
|
126 | 140 | Aggregates of class type are described in~\ref{dcl.init.aggr}.
|
127 | 141 | \end{note}
|
128 | 142 |
|
| 143 | +\rSec1[class.prop]{Properties of classes} |
| 144 | + |
129 | 145 | \pnum
|
130 | 146 | A \defnadj{trivially copyable}{class} is a class:
|
131 | 147 |
|
|
256 | 272 | \end{codeblock}
|
257 | 273 | \end{example}
|
258 | 274 |
|
259 |
| -\pnum |
260 |
| -If a \grammarterm{class-head-name} contains a \grammarterm{nested-name-specifier}, |
261 |
| -the \grammarterm{class-specifier} shall refer to a class that was |
262 |
| -previously declared directly in the class or namespace to which the |
263 |
| -\grammarterm{nested-name-specifier} refers, |
264 |
| -or in an element of the inline namespace set\iref{namespace.def} of that namespace |
265 |
| -(i.e., not merely inherited or |
266 |
| -introduced by a \grammarterm{using-declaration}), and the |
267 |
| -\grammarterm{class-specifier} shall appear in a namespace enclosing the |
268 |
| -previous declaration. |
269 |
| -In such cases, the \grammarterm{nested-name-specifier} of the |
270 |
| -\grammarterm{class-head-name} of the |
271 |
| -definition shall not begin with a \grammarterm{decltype-specifier}. |
272 |
| - |
273 | 275 | \rSec1[class.name]{Class names}
|
274 | 276 | \indextext{definition!class name as type}%
|
275 | 277 | \indextext{structure tag|see{class name}}%
|
|
0 commit comments