Skip to content

Commit 60d777c

Browse files
jensmaurerzygoloid
authored andcommitted
[class] Replace \term with \defn or \defnx
and slightly adjust indexing
1 parent cbada74 commit 60d777c

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

source/classes.tex

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,8 @@
6767
itself; this is known as the \defn{injected-class-name}.
6868
For purposes of access checking, the injected-class-name is treated as
6969
if it were a public member name.
70-
\indextext{definition!class}%
71-
A \grammarterm{class-specifier} is commonly referred to as a class
72-
definition.
73-
\indextext{definition!class}%
70+
A \grammarterm{class-specifier} is commonly referred to as a \defnx{class
71+
definition}{definition!class}.
7472
A class is considered defined after the closing brace of its
7573
\grammarterm{class-specifier} has been seen even though its member
7674
functions are in general not yet defined.
@@ -112,19 +110,17 @@
112110
\indextext{\idxcode{struct}!\tcode{class} versus}%
113111
\indextext{structure}%
114112
\indextext{\idxcode{union}!\tcode{class} versus}%
115-
A \term{union} is a class defined with the \grammarterm{class-key}
113+
A \defn{union} is a class defined with the \grammarterm{class-key}
116114
\tcode{union};
117115
\indextext{access control!\idxcode{union} default member}%
118116
it holds at most one data member at a time\iref{class.union}.
119117
\begin{note}
120118
Aggregates of class type are described in~\ref{dcl.init.aggr}.
121119
\end{note}
122120

123-
\indextext{class!trivial}%
124-
\indextext{trivial class}%
125-
\indextext{class!trivially copyable}%
121+
\indextext{trivial class|see{class, trivial}}%
126122
\pnum
127-
A \defn{trivially copyable class} is a class:
123+
A \defnx{trivially copyable class}{class!trivially copyable} is a class:
128124

129125
\begin{itemize}
130126
\item where each copy constructor, move constructor, copy assignment operator,
@@ -135,16 +131,16 @@
135131
\item that has a trivial, non-deleted destructor\iref{class.dtor}.
136132
\end{itemize}
137133

138-
A \term{trivial class} is a class that is trivially copyable and
134+
A \defnx{trivial class}{class!trivial} is a class that is trivially copyable and
139135
has one or more default constructors\iref{class.ctor},
140136
all of which are either trivial or deleted and
141137
at least one of which is not deleted.
142138
\begin{note} In particular, a trivially copyable or trivial class does not have
143139
virtual functions or virtual base classes.\end{note}
144140

145-
\indextext{class!standard-layout}%
141+
\indextext{standard-layout|see{class, standard-layout}}%
146142
\pnum
147-
A class \tcode{S} is a \defn{standard-layout class} if it:
143+
A class \tcode{S} is a \defnx{standard-layout class}{class!standard-layout} if it:
148144
\begin{itemize}
149145
\item has no non-static data members of type non-standard-layout class
150146
(or array of such types) or reference,
@@ -210,13 +206,11 @@
210206
\end{codeblock}
211207
\end{example}
212208

213-
\indextext{struct!standard-layout}%
214-
\indextext{union!standard-layout}%
215209
\pnum
216-
A \defn{standard-layout struct} is a standard-layout class
210+
A \defnx{standard-layout struct}{struct!standard-layout} is a standard-layout class
217211
defined with the \grammarterm{class-key} \tcode{struct} or the
218212
\grammarterm{class-key} \tcode{class}.
219-
A \defn{standard-layout union} is a standard-layout class
213+
A \defnx{standard-layout union}{union!standard-layout} is a standard-layout class
220214
defined with the
221215
\grammarterm{class-key} \tcode{union}.
222216

@@ -815,7 +809,7 @@
815809
\indextext{member function!inline}%
816810
\indextext{definition!member function}%
817811
A member function may be defined\iref{dcl.fct.def} in its class
818-
definition, in which case it is an \term{inline} member
812+
definition, in which case it is an inline member
819813
function\iref{dcl.inline}, or it may be defined outside of its class
820814
definition if it has already been declared but not defined in its class
821815
definition. A member function definition that appears outside of the
@@ -1029,7 +1023,7 @@
10291023

10301024
\pnum
10311025
A non-static member function may be declared
1032-
\term{virtual}\iref{class.virtual} or \term{pure virtual}\iref{class.abstract}.
1026+
virtual\iref{class.virtual} or pure virtual\iref{class.abstract}.
10331027

10341028
\rSec3[class.this]{The \tcode{this} pointer}%
10351029
\indextext{\idxcode{this}}

0 commit comments

Comments
 (0)