Skip to content

Commit 5e563c2

Browse files
committed
Mark definitions more consistently with defn/defnx.
1 parent e09fd98 commit 5e563c2

File tree

7 files changed

+21
-30
lines changed

7 files changed

+21
-30
lines changed

source/exceptions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@
258258
Throwing an exception
259259
copy-initializes~(\ref{dcl.init}, \ref{class.copy}) a temporary object,
260260
called the
261-
\indextext{exception handling!exception object}\term{exception object}.
261+
\defnx{exception object}{exception handling!exception object}.
262262
The temporary is an lvalue and is used to initialize the
263263
variable declared in the matching
264264
\term{handler}~(\ref{except.handle}).

source/expressions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@
10171017
\exitexample
10181018

10191019
\pnum
1020-
An entity is \indexdefn{captured!by copy}\term{captured by copy} if it is implicitly captured and the
1020+
An entity is \defnx{captured by copy}{captured!by copy} if it is implicitly captured and the
10211021
\grammarterm{capture-default} is \tcode{=} or if it is explicitly captured with a
10221022
capture that is not of the form \tcode{\&} \grammarterm{identifier} or
10231023
\tcode{\&} \grammarterm{identifier} \grammarterm{initializer}.
@@ -1030,7 +1030,7 @@
10301030
A member of an anonymous union shall not be captured by copy.
10311031

10321032
\pnum
1033-
An entity is \indexdefn{captured!by reference}\term{captured by reference} if it is implicitly or explicitly
1033+
An entity is \defnx{captured by reference}{captured!by reference} if it is implicitly or explicitly
10341034
captured but not captured by copy. It is unspecified whether additional unnamed
10351035
non-static data members are declared in the closure type for entities captured by
10361036
reference. A member of an anonymous union shall not be captured by reference.

source/intro.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
\Cpp is a general purpose programming language based on the C
4040
programming language as described in ISO/IEC 9899:1999
4141
\doccite{Programming languages --- C} (hereinafter referred to as the
42-
\indexdefn{C!standard}\term{C standard}). In addition to
42+
\defnx{C standard}{C!standard}). In addition to
4343
the facilities provided by C, \Cpp provides additional data types,
4444
classes, templates, exceptions, namespaces, operator
4545
overloading, function name overloading, references, free store
@@ -82,14 +82,14 @@
8282
The library described in Clause 7 of ISO/IEC 9899:1999 and Clause 7 of
8383
ISO/IEC 9899:1999/Cor.1:2001 and Clause 7 of ISO/IEC
8484
9899:1999/Cor.2:2003 is hereinafter called the
85-
\indexdefn{C!standard library}\term{C standard
86-
library}.\footnote{With the qualifications noted in Clauses~\ref{\firstlibchapter}
85+
\defnx{C standard library}{C!standard library}.
86+
\footnote{With the qualifications noted in Clauses~\ref{\firstlibchapter}
8787
through~\ref{\lastlibchapter} and in~\ref{diff.library}, the C standard
8888
library is a subset of the \Cpp standard library.}
8989

9090
\pnum
9191
The library described in ISO/IEC TR 19769:2004 is hereinafter called the
92-
\indexdefn{C!Unicode TR}\term{C Unicode TR}.
92+
\defnx{C Unicode TR}{C!Unicode TR}.
9393

9494
\pnum
9595
The operating system interface described in ISO/IEC 9945:2003 is
@@ -968,7 +968,7 @@
968968
Executions of atomic functions
969969
that are either defined to be lock-free~(\ref{atomics.flag})
970970
or indicated as lock-free~(\ref{atomics.lockfree})
971-
are \indexdefn{lock-free executions}\term{lock-free executions}.
971+
are \defn{lock-free executions}.
972972
\begin{itemize}
973973
\item
974974
If there is only one unblocked thread,

source/lex.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
\indextext{conventions!lexical|(}%
2929
\indextext{compilation!separate|(}%
3030
The text of the program is kept in units called
31-
\indextext{source file}\term{source files} in this International
31+
\defn{source file}{s} in this International
3232
Standard. A source file together with all the headers~(\ref{headers})
3333
and source files included~(\ref{cpp.include}) via the preprocessing
3434
directive \tcode{\#include}, less any source lines skipped by any of the

source/preprocessor.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,9 +572,8 @@
572572
The identifier immediately following the
573573
\tcode{define}
574574
is called the
575-
\indextext{macro!name}%
576575
\indextext{name!macro|see{macro, name}}%
577-
\term{macro name}.
576+
\defnx{macro name}{macro!name}.
578577
There is one name space for macro names.
579578
Any white-space characters preceding or following the
580579
replacement list of preprocessing tokens are not considered

source/strings.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
\pnum
77
This Clause describes components for manipulating sequences of
88
any non-array POD~(\ref{basic.types}) type.
9-
In this Clause such types are called \term{char-like types},\indextext{char-like type}
9+
In this Clause such types are called \defn{char-like type}{s},
1010
and objects of
11-
char-like types are called \term{char-like objects}\indextext{char-like object} or
11+
char-like types are called \defn{char-like object}{s} or
1212
simply \term{characters}.
1313

1414
\pnum

source/utilities.tex

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7066,7 +7066,7 @@
70667066
\rSec1[function.objects]{Function objects}
70677067

70687068
\pnum
7069-
A \indexdefn{function object!type}\term{function object type} is an object
7069+
A \defnx{function object type}{function object!type} is an object
70707070
type~(\ref{basic.types}) that can be the type of the
70717071
\grammarterm{postfix-expression} in a function call
70727072
(\ref{expr.call},~\ref{over.match.call}).\footnote{Such a type is a function
@@ -7260,30 +7260,24 @@
72607260
The following definitions apply to this Clause:
72617261

72627262
\pnum
7263-
\indexdefn{call signature}%
7264-
A \term{call signature} is the name of a return type followed by a
7263+
A \defn{call signature} is the name of a return type followed by a
72657264
parenthesized comma-separated list of zero or more argument types.
72667265

72677266
\pnum
7268-
\indexdefn{callable type}%
7269-
A \term{callable type} is a function object type~(\ref{function.objects}) or a pointer to member.
7267+
A \defn{callable type} is a function object type~(\ref{function.objects}) or a pointer to member.
72707268

72717269
\pnum
7272-
\indexdefn{callable object}%
7273-
A \term{callable object} is an object of a callable type.
7270+
A \defn{callable object} is an object of a callable type.
72747271

72757272
\pnum
7276-
\indexdefn{call wrapper!type}%
7277-
A \term{call wrapper type} is a type that holds a callable object
7273+
A \defnx{call wrapper type}{call wrapper!type} is a type that holds a callable object
72787274
and supports a call operation that forwards to that object.
72797275

72807276
\pnum
7281-
\indexdefn{call wrapper}%
7282-
A \term{call wrapper} is an object of a call wrapper type.
7277+
A \defn{call wrapper} is an object of a call wrapper type.
72837278

72847279
\pnum
7285-
\indexdefn{target object}%
7286-
A \term{target object} is the callable object held by a call wrapper.
7280+
A \defn{target object} is the callable object held by a call wrapper.
72877281

72887282
\rSec2[func.require]{Requirements}
72897283

@@ -7351,13 +7345,11 @@
73517345
\indextext{call wrapper}%
73527346
\indextext{call wrapper!simple}%
73537347
\indextext{call wrapper!forwarding}%
7354-
\indextext{simple call wrapper}%
7355-
\indextext{forwarding call wrapper}%
73567348
Every call wrapper~(\ref{func.def}) shall be
7357-
\tcode{MoveConstructible}. A \term{simple call wrapper} is a call wrapper
7349+
\tcode{MoveConstructible}. A \defn{simple call wrapper} is a call wrapper
73587350
that is \tcode{CopyConstructible} and \tcode{CopyAssignable} and whose copy
73597351
constructor, move constructor, and assignment operator
7360-
do not throw exceptions. A \term{forwarding call wrapper} is a
7352+
do not throw exceptions. A \defn{forwarding call wrapper} is a
73617353
call wrapper that can be called with an arbitrary argument list
73627354
and delivers the arguments to the wrapped callable object as references.
73637355
This forwarding step shall ensure that rvalue arguments are delivered as rvalue references

0 commit comments

Comments
 (0)