Skip to content

Commit 0bbca6c

Browse files
jwakelytkoeppe
authored andcommitted
[class] Add index cross-references to subentries under "class"
Add index cross-references so "trival class" and "trivially copyable class" refer to "class, trivial" and "class, trivially copyable" respectively. Also add a missing \pnum before the paragraph defining trivial classes.
1 parent 37be412 commit 0bbca6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/classes.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@
124124
Aggregates of class type are described in~\ref{dcl.init.aggr}.
125125
\end{note}
126126

127-
\indextext{trivial class|see{class, trivial}}%
128127
\pnum
128+
\indextext{trivially copyable class|see{class, trivially copyable}}%
129129
A \defnx{trivially copyable class}{class!trivially copyable} is a class:
130130

131131
\begin{itemize}
@@ -137,15 +137,17 @@
137137
\item that has a trivial, non-deleted destructor\iref{class.dtor}.
138138
\end{itemize}
139139

140+
\pnum
141+
\indextext{trivial class|see{class, trivial}}%
140142
A \defnx{trivial class}{class!trivial} is a class that is trivially copyable and
141143
has one or more default constructors\iref{class.ctor},
142144
all of which are either trivial or deleted and
143145
at least one of which is not deleted.
144146
\begin{note} In particular, a trivially copyable or trivial class does not have
145147
virtual functions or virtual base classes.\end{note}
146148

147-
\indextext{standard-layout|see{class, standard-layout}}%
148149
\pnum
150+
\indextext{standard-layout|see{class, standard-layout}}%
149151
A class \tcode{S} is a \defnx{standard-layout class}{class!standard-layout} if it:
150152
\begin{itemize}
151153
\item has no non-static data members of type non-standard-layout class

0 commit comments

Comments
 (0)