File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 127
127
\end {note }
128
128
129
129
\pnum
130
- \indextext {trivially copyable class|see{class, trivially copyable}}%
131
- A \defnx {trivially copyable class}{class!trivially copyable} is a class:
130
+ A \defnadj {trivially copyable}{class} is a class:
132
131
133
132
\begin {itemize }
134
133
\item where each copy constructor, move constructor, copy assignment operator,
140
139
\end {itemize }
141
140
142
141
\pnum
143
- \indextext {trivial class|see{class, trivial}}%
144
- A \defnx {trivial class}{class!trivial} is a class that is trivially copyable and
142
+ A \defnadj {trivial}{class} is a class that is trivially copyable and
145
143
has one or more default constructors\iref {class.ctor },
146
144
all of which are either trivial or deleted and
147
145
at least one of which is not deleted.
148
146
\begin {note } In particular, a trivially copyable or trivial class does not have
149
147
virtual functions or virtual base classes.\end {note }
150
148
151
149
\pnum
152
- \indextext {standard-layout|see{class, standard-layout}}%
153
- A class \tcode {S} is a \defnx {standard-layout class}{class!standard-layout} if it:
150
+ A class \tcode {S} is a \defnadj {standard-layout}{class} if it:
154
151
\begin {itemize }
155
152
\item has no non-static data members of type non-standard-layout class
156
153
(or array of such types) or reference,
Original file line number Diff line number Diff line change 181
181
182
182
% Code and definitions embedded in text.
183
183
\newcommand {\tcode }[1]{\CodeStylex {#1}}
184
- \newcommand {\defnx }[2]{\indexdefn {#2}\textit {#1 }}
185
- \newcommand {\defn }[1]{\defnx {#1}{#1}}
186
184
\newcommand {\term }[1]{\textit {#1 }}
187
185
\newcommand {\gterm }[1]{\GrammarStylex {#1}}
188
186
\newcommand {\fakegrammarterm }[1]{\gterm {#1}}
193
191
\newcommand {\defnxname }[1]{\indextext {\idxxname {#1}}\xname {#1}}
194
192
\newcommand {\defnlibxname }[1]{\indexlibrary {\idxxname {#1}}\xname {#1}}
195
193
194
+ % Non-compound defined term.
195
+ \newcommand {\defn }[1]{\defnx {#1}{#1}}
196
+ % Defined term with different index entry.
197
+ \newcommand {\defnx }[2]{\indexdefn {#2}\textit {#1 }}
198
+ % Compound defined term with 'see' for primary term.
199
+ % Usage: \defnadj{trivial}{class}
200
+ \newcommand {\defnadj }[2]{\indextext {#1 #2|see{#2, #1}}\indexdefn {#2!#1}\textit {#1 #2 }}
201
+
196
202
% %--------------------------------------------------
197
203
% % allow line break if needed for justification
198
204
\newcommand {\brk }{\discretionary {}{}{}}
You can’t perform that action at this time.
0 commit comments