Skip to content

Commit a2a172f

Browse files
Eeliszygoloid
authored andcommitted
Replace \term+\indextext pairs with \defn(x).
1 parent f897604 commit a2a172f

File tree

8 files changed

+43
-80
lines changed

8 files changed

+43
-80
lines changed

source/declarators.tex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -700,12 +700,10 @@
700700

701701

702702
\pnum
703-
\indextext{lvalue reference}%
704-
\indextext{rvalue reference}%
705703
A reference type that is declared using \tcode{\&} is called an
706-
\term{lvalue reference}, and a reference type that
704+
\defn{lvalue reference}, and a reference type that
707705
is declared using \tcode{\&\&} is called an
708-
\term{rvalue reference}. Lvalue references and
706+
\defn{rvalue reference}. Lvalue references and
709707
rvalue references are distinct types. Except where explicitly noted, they are
710708
semantically equivalent and commonly referred to as references.
711709

@@ -2994,8 +2992,7 @@
29942992
\end{note}
29952993

29962994
\pnum
2997-
\indextext{aggregate!elements}%
2998-
The \term{elements} of an aggregate are:
2995+
The \defnx{elements}{aggregate!elements} of an aggregate are:
29992996
\begin{itemize}
30002997
\item
30012998
for an array, the array elements in increasing subscript order, or

source/derived.tex

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@
5959
an incompletely defined class (Clause~\ref{class}).
6060
The class denoted by the \grammarterm{class-or-decltype} of
6161
a \grammarterm{base-specifier} is called a
62-
\indextext{base class!direct}%
63-
\term{direct base class}
62+
\defnx{direct base class}{base class!direct}
6463
for the class being defined.
6564
\indextext{base class}%
6665
\indextext{derivation|see{inheritance}}%
@@ -69,8 +68,7 @@
6968
\grammarterm{class-name}, the program is ill-formed. A class \tcode{B} is a
7069
base class of a class \tcode{D} if it is a direct base class of
7170
\tcode{D} or a direct base class of one of \tcode{D}'s base classes.
72-
\indextext{base class!indirect}%
73-
A class is an \term{indirect} base class of another if it is a base
71+
A class is an \defnx{indirect}{base class!indirect} base class of another if it is a base
7472
class but not a direct base class. A class is said to be (directly or
7573
indirectly) \term{derived} from its (direct or indirect) base
7674
classes.
@@ -82,8 +80,7 @@
8280
Unless redeclared in the derived class, members of a base class are also
8381
considered to be members of the derived class.
8482
Members of a base class other than constructors are said to be
85-
\indextext{inheritance}%
86-
\term{inherited}
83+
\defnx{inherited}{inheritance}
8784
by the derived class. Constructors of a base class
8885
can also be inherited as described in~\ref{namespace.udecl}.
8986
Inherited members can be referred to in
@@ -577,13 +574,12 @@
577574
\rSec1[class.virtual]{Virtual functions}%
578575
\indextext{virtual function|(}%
579576
\indextext{type!polymorphic}%
580-
\indextext{class!polymorphic}
581577

582578
\pnum
583579
\begin{note}
584580
Virtual functions support dynamic binding and object-oriented
585581
programming. \end{note} A class that declares or inherits a virtual function is
586-
called a \term{polymorphic class}.
582+
called a \defnx{polymorphic class}{class!polymorphic}.
587583

588584
\pnum
589585
If a virtual member function \tcode{vf} is declared in a class
@@ -920,7 +916,6 @@
920916
\indextext{virtual function|)}
921917

922918
\rSec1[class.abstract]{Abstract classes}%
923-
\indextext{class!abstract}
924919

925920
\pnum
926921
\begin{note}
@@ -932,15 +927,14 @@
932927
\end{note}
933928

934929
\pnum
935-
An \term{abstract class} is a class that can be used only
930+
An \defnx{abstract class}{class!abstract} is a class that can be used only
936931
as a base class of some other class; no objects of an abstract class can
937932
be created except as subobjects of a class derived from it. A class is
938933
abstract if it has at least one \term{pure virtual function}.
939934
\begin{note}
940935
Such a function might be inherited: see below.
941936
\end{note}
942-
\indextext{virtual function!pure}%
943-
A virtual function is specified \term{pure} by using a
937+
A virtual function is specified \defnx{pure}{virtual function!pure} by using a
944938
\grammarterm{pure-specifier}~(\ref{class.mem}) in the function declaration
945939
in the class definition.
946940
\indextext{definition!pure virtual function}%

source/expressions.tex

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4014,17 +4014,15 @@
40144014
type by calling the above-mentioned conversion function, and the
40154015
converted operand is used in place of the original operand for the
40164016
remainder of this section.
4017-
\indextext{object!delete}%
40184017
In the first alternative
4019-
(\term{delete object}), the value of the operand of \tcode{delete} may
4018+
(\defnx{delete object}{object!delete}), the value of the operand of \tcode{delete} may
40204019
be a null pointer value, a pointer to a non-array object
40214020
created by a previous \grammarterm{new-expression},
40224021
or a pointer to a
40234022
subobject~(\ref{intro.object}) representing a base class of such an
40244023
object (Clause~\ref{class.derived}). If not, the behavior is undefined.
40254024
\indextext{array!\idxcode{delete}}%
4026-
\indextext{\idxcode{delete}!array}%
4027-
In the second alternative (\term{delete array}), the value of the
4025+
In the second alternative (\defnx{delete array}{\idxcode{delete}!array}), the value of the
40284026
operand of \tcode{delete}
40294027
may be a null pointer value or a pointer value
40304028
that resulted from
@@ -5623,8 +5621,7 @@
56235621
the conversion sequence contains only the conversions above.
56245622

56255623
\pnum
5626-
\indextext{expression!constant}%
5627-
A \term{constant expression} is either
5624+
A \defnx{constant expression}{expression!constant} is either
56285625
a glvalue core constant expression that refers to
56295626
an entity that is a permitted result of a constant expression (as defined below), or
56305627
a prvalue core constant expression whose value

source/lib-intro.tex

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,10 @@
510510
For non-reserved replacement and handler functions,
511511
Clause~\ref{language.support} specifies two behaviors for the functions in question:
512512
their required and default behavior.
513-
The
514-
\term{default behavior}
513+
The \defnx{default behavior}{behavior!default}
515514
describes a function definition provided by the implementation.
516-
\indextext{behavior!default}%
517-
The
518-
\term{required behavior}
515+
The \defnx{required behavior}{behavior!required}
519516
describes the semantics of a function definition provided by
520-
\indextext{behavior!required}%
521517
either the implementation or a \Cpp program.
522518
Where no distinction is explicitly made in the description, the
523519
behavior described is the required behavior.
@@ -598,8 +594,7 @@
598594

599595
\pnum
600596
Several types defined in Clause~\ref{input.output} are
601-
\term{enumerated types}.
602-
\indextext{type!enumerated}%
597+
\defnx{enumerated types}{type!enumerated}.
603598
Each enumerated type may be implemented as an enumeration or as a synonym for
604599
an enumeration.\footnote{Such as an integer type, with constant integer
605600
values~(\ref{basic.fundamental}).}
@@ -630,8 +625,7 @@
630625
\pnum
631626
Several types defined in Clauses~\ref{\firstlibchapter} through~\ref{\lastlibchapter}
632627
and Annex~\ref{depr} are
633-
\term{bitmask types}.
634-
\indextext{type!bitmask}%
628+
\defnx{bitmask types}{type!bitmask}.
635629
Each bitmask type can be implemented as an
636630
enumerated type that overloads certain operators, as an integer type,
637631
or as a
@@ -731,9 +725,8 @@
731725
uppercase letters in the basic execution character set.
732726
\item
733727
The
734-
\term{decimal-point character}
728+
\defnx{decimal-point character}{character!decimal-point}
735729
is the
736-
\indextext{character!decimal-point}%
737730
(single-byte) character used by functions that convert between a (single-byte)
738731
character sequence and a value of one of the floating-point types.
739732
It is used
@@ -781,9 +774,8 @@
781774

782775
\pnum
783776
A
784-
\indextext{string!null-terminated byte}%
785777
\indextext{NTBS}%
786-
\term{null-terminated byte string},
778+
\defnx{null-terminated byte string}{string!null-terminated byte},
787779
or \ntbs,
788780
is a character sequence whose highest-addressed element
789781
with defined content has the value zero
@@ -820,8 +812,7 @@
820812
\pnum
821813
A
822814
\indextext{NTBS}%
823-
\indextext{NTBS!static}%
824-
\term{static} \ntbs
815+
\defnx{static}{NTBS!static} \ntbs
825816
is an \ntbs with
826817
static storage duration.\footnote{A string literal, such as
827818
\tcode{"abc"},
@@ -842,9 +833,8 @@
842833

843834
\pnum
844835
A
845-
\term{static} \ntmbs
836+
\defnx{static}{NTMBS!static} \ntmbs
846837
is an \ntmbs with static storage duration.
847-
\indextext{NTMBS!static}%
848838
\indextext{NTMBS}%
849839

850840
\rSec3[functions.within.classes]{Functions within classes}
@@ -1268,11 +1258,10 @@
12681258

12691259
\pnum
12701260
Two kinds of implementations are defined:
1271-
\term{hosted}
1261+
\defnx{hosted}{implementation!hosted}
12721262
and
12731263
\term{freestanding}~(\ref{intro.compliance}).
12741264
For a hosted implementation, this International Standard
1275-
\indextext{implementation!hosted}%
12761265
describes the set of available headers.
12771266

12781267
\pnum

source/special.tex

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@
150150

151151
\pnum
152152
\indextext{constructor!inheritance of}%
153-
\indextext{constructor!default}%
154153
\indextext{constructor!non-trivial}%
155154
A
156-
\term{default}
155+
\defnx{default}{constructor!default}
157156
constructor for a class
158157
\tcode{X}
159158
is a constructor of class
@@ -236,11 +235,10 @@
236235
\defnx{non-trivial}{constructor!default!non-trivial}.
237236

238237
\pnum
239-
\indextext{constructor!implicitly defined}%
240238
A default constructor
241239
that is defaulted and not defined as deleted
242240
is
243-
\term{implicitly defined}
241+
\defnx{implicitly defined}{constructor!implicitly defined}
244242
when it is odr-used~(\ref{basic.def.odr})
245243
to create an object of its class type~(\ref{intro.object})
246244
or when it is explicitly defaulted after its first declaration.
@@ -729,14 +727,13 @@
729727

730728
\pnum
731729
\indextext{conversion!class}%
732-
\indextext{conversion!user-defined}%
733730
\indextext{constructor, conversion by|see{conversion, user-defined}}%
734731
\indextext{conversion function|see{conversion, user-defined}}%
735732
\indextext{conversion!implicit}%
736733
Type conversions of class objects can be specified by constructors and
737734
by conversion functions.
738735
These conversions are called
739-
\term{user-defined conversions}
736+
\defnx{user-defined conversions}{conversion!user-defined}
740737
and are used for implicit type conversions (Clause~\ref{conv}),
741738
for initialization~(\ref{dcl.init}),
742739
and for explicit type conversions~(\ref{expr.cast}, \ref{expr.static.cast}).
@@ -807,8 +804,7 @@
807804
the types of its parameters (if any)
808805
to the type of its class.
809806
Such a constructor is called a
810-
\indexdefn{constructor!converting}%
811-
\term{converting constructor}.
807+
\defnx{converting constructor}{constructor!converting}.
812808
\begin{example}
813809

814810
\indextext{Jessie}%
@@ -1119,11 +1115,10 @@
11191115
\defnx{non-trivial}{destructor!non-trivial}.
11201116

11211117
\pnum
1122-
\indextext{destructor!implicitly defined}%
11231118
A destructor
11241119
that is defaulted and not defined as deleted
11251120
is
1126-
\term{implicitly defined}
1121+
\defnx{implicitly defined}{destructor!implicitly defined}
11271122
when it is odr-used~(\ref{basic.def.odr})
11281123
or when it is explicitly defaulted after its first declaration.
11291124

@@ -2615,9 +2610,8 @@
26152610
\end{example}
26162611

26172612
\pnum
2618-
\indextext{constructor!copy!implicitly declared}%
26192613
If the class definition does not explicitly declare a copy constructor,
2620-
a non-explicit one is declared \term{implicitly}.
2614+
a non-explicit one is declared \defnx{implicitly}{constructor!copy!implicitly declared}.
26212615
If the class definition declares a move
26222616
constructor or move assignment operator, the implicitly declared copy
26232617
constructor is defined as deleted; otherwise, it is defined as
@@ -2864,9 +2858,9 @@
28642858
\end{note}
28652859

28662860
\pnum
2867-
\indextext{assignment operator!copy!implicitly declared}%
28682861
If the class definition does not explicitly declare a copy assignment operator,
2869-
one is declared \term{implicitly}. If the class definition declares a move
2862+
one is declared \defnx{implicitly}{assignment operator!copy!implicitly declared}.
2863+
If the class definition declares a move
28702864
constructor or move assignment operator, the implicitly declared copy
28712865
assignment operator is defined as deleted; otherwise, it is defined as
28722866
defaulted~(\ref{dcl.fct.def}).

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-
Such types are called \term{char-like types},\indextext{char-like type}
9+
Such types are called \defnx{char-like types}{char-like type},
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 \defnx{char-like objects}{char-like object} or
1212
simply \term{characters}.
1313

1414
\pnum

source/threads.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4261,7 +4261,7 @@
42614261

42624262
\begin{itemdescr}
42634263
\pnum
4264-
\effects Constructs an \indexdefn{empty \tcode{future} object}\term{empty}
4264+
\effects Constructs an \defnx{empty}{empty \tcode{future} object}
42654265
\tcode{future} object that does not refer to a
42664266
shared state.
42674267

@@ -4547,8 +4547,8 @@
45474547

45484548
\begin{itemdescr}
45494549
\pnum
4550-
\effects Constructs an \indexdefn{empty \tcode{shared_future}
4551-
object}\term{empty} \tcode{shared_future} object that does not refer to a
4550+
\effects Constructs an \defnx{empty}{empty \tcode{shared_future} object}
4551+
\tcode{shared_future} object that does not refer to a
45524552
shared state.
45534553

45544554
\pnum

0 commit comments

Comments
 (0)