Skip to content

Commit 53b6288

Browse files
jensmaurerzygoloid
authored andcommitted
[conv] Replace \term with \defn or \defnx
1 parent db77cbd commit 53b6288

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

source/conversions.tex

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
\indextext{conversion!implicit}%
1111
Standard conversions are implicit conversions with built-in meaning.
1212
\ref{conv} enumerates the full set of such conversions. A
13-
\indextext{sequence!standard conversion}%
14-
\term{standard conversion sequence} is a sequence of standard
13+
\defnx{standard conversion sequence}{conversion sequence!standard} is a sequence of standard
1514
conversions in the following order:
1615

1716
\begin{itemize}
@@ -60,16 +59,14 @@
6059

6160
\pnum
6261
An expression \tcode{e} can be
63-
\indextext{conversion!implicit}%
64-
\term{implicitly converted} to a type \tcode{T} if and only if the
62+
\defnx{implicitly converted}{conversion!implicit} to a type \tcode{T} if and only if the
6563
declaration \tcode{T t=e;} is well-formed, for some invented temporary
6664
variable \tcode{t}\iref{dcl.init}.
6765

6866
\pnum
6967
Certain language constructs require that an expression be converted to a Boolean
7068
value. An expression \tcode{e} appearing in such a context is said to be
71-
\indextext{conversion!contextual to \tcode{bool}}%
72-
\term{contextually converted to \tcode{bool}} and is well-formed if and only if
69+
\defnx{contextually converted to \tcode{bool}}{conversion!contextual to \tcode{bool}} and is well-formed if and only if
7370
the declaration \tcode{bool t(e);} is well-formed, for some invented temporary
7471
variable \tcode{t}\iref{dcl.init}.
7572

@@ -393,7 +390,7 @@
393390
one.
394391

395392
\pnum
396-
These conversions are called \term{integral promotions}.
393+
These conversions are called \defnx{integral promotions}{integral promotion}.
397394

398395
\rSec1[conv.fpprom]{Floating-point promotion}
399396

@@ -403,7 +400,7 @@
403400
\tcode{double}. The value is unchanged.
404401

405402
\pnum
406-
This conversion is called \term{floating-point promotion}.
403+
This conversion is called \defn{floating-point promotion}.
407404

408405
\rSec1[conv.integral]{Integral conversions}
409406

@@ -490,10 +487,9 @@
490487
\pnum
491488
\indextext{conversion!pointer}%
492489
\indextext{null pointer conversion|see{conversion, null pointer}}%
493-
\indextext{pointer!zero}%
494-
\indextext{constant!null pointer}%
490+
\indextext{pointer!zero|see{value, null pointer}}%
495491
\indextext{value!null pointer}%
496-
A \term{null pointer constant} is an integer literal\iref{lex.icon} with
492+
A \defnx{null pointer constant}{constant!null pointer} is an integer literal\iref{lex.icon} with
497493
value zero
498494
or a prvalue of type \tcode{std::nullptr_t}. A null pointer constant can be
499495
converted to a pointer type; the
@@ -532,14 +528,14 @@
532528

533529
\pnum
534530
\indextext{conversion!pointer-to-member}%
531+
\indextext{null member pointer conversion|see{conversion, null member pointer}}%
535532
\indextext{constant!null pointer}%
536-
\indextext{value!null member pointer}%
537533
A null pointer constant\iref{conv.ptr} can be converted to a
538534
pointer-to-member
539-
type; the result is the \term{null member pointer value}
535+
type; the result is the \defnx{null member pointer value}{value!null member pointer}
540536
of that type and is distinguishable from any pointer to member not
541537
created from a null pointer constant.
542-
Such a conversion is called a \term{null member pointer conversion}.
538+
Such a conversion is called a \defnx{null member pointer conversion}{conversion!null member pointer}.
543539
Two null member pointer values of
544540
the same type shall compare equal. The conversion of a null pointer
545541
constant to a pointer to member of cv-qualified type is a single

0 commit comments

Comments
 (0)