Skip to content

Commit afe115a

Browse files
jensmaurerzygoloid
authored andcommitted
[class] Introduce a subheading 'Properties of classes'.
1 parent d3f80a4 commit afe115a

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

source/classes.tex

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@
8080
the \grammarterm{attribute-specifier-seq} are thereafter considered attributes of the class
8181
whenever it is named.
8282

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+
8397
\pnum
8498
If a class is marked with the \grammarterm{class-virt-specifier} \tcode{final} and it appears
8599
as a \grammarterm{class-or-decltype} in a \grammarterm{base-clause}\iref{class.derived},
@@ -126,6 +140,8 @@
126140
Aggregates of class type are described in~\ref{dcl.init.aggr}.
127141
\end{note}
128142

143+
\rSec1[class.prop]{Properties of classes}
144+
129145
\pnum
130146
A \defnadj{trivially copyable}{class} is a class:
131147

@@ -256,20 +272,6 @@
256272
\end{codeblock}
257273
\end{example}
258274

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-
273275
\rSec1[class.name]{Class names}
274276
\indextext{definition!class name as type}%
275277
\indextext{structure tag|see{class name}}%

0 commit comments

Comments
 (0)