Skip to content

Commit

Permalink
[conv] Replace \term with \defn or \defnx
Browse files Browse the repository at this point in the history
  • Loading branch information
jensmaurer authored and zygoloid committed Feb 12, 2018
1 parent db77cbd commit 53b6288
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions source/conversions.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
\indextext{conversion!implicit}%
Standard conversions are implicit conversions with built-in meaning.
\ref{conv} enumerates the full set of such conversions. A
\indextext{sequence!standard conversion}%
\term{standard conversion sequence} is a sequence of standard
\defnx{standard conversion sequence}{conversion sequence!standard} is a sequence of standard
conversions in the following order:

\begin{itemize}
Expand Down Expand Up @@ -60,16 +59,14 @@

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

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

Expand Down Expand Up @@ -393,7 +390,7 @@
one.

\pnum
These conversions are called \term{integral promotions}.
These conversions are called \defnx{integral promotions}{integral promotion}.

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

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

\pnum
This conversion is called \term{floating-point promotion}.
This conversion is called \defn{floating-point promotion}.

\rSec1[conv.integral]{Integral conversions}

Expand Down Expand Up @@ -490,10 +487,9 @@
\pnum
\indextext{conversion!pointer}%
\indextext{null pointer conversion|see{conversion, null pointer}}%
\indextext{pointer!zero}%
\indextext{constant!null pointer}%
\indextext{pointer!zero|see{value, null pointer}}%
\indextext{value!null pointer}%
A \term{null pointer constant} is an integer literal\iref{lex.icon} with
A \defnx{null pointer constant}{constant!null pointer} is an integer literal\iref{lex.icon} with
value zero
or a prvalue of type \tcode{std::nullptr_t}. A null pointer constant can be
converted to a pointer type; the
Expand Down Expand Up @@ -532,14 +528,14 @@

\pnum
\indextext{conversion!pointer-to-member}%
\indextext{null member pointer conversion|see{conversion, null member pointer}}%
\indextext{constant!null pointer}%
\indextext{value!null member pointer}%
A null pointer constant\iref{conv.ptr} can be converted to a
pointer-to-member
type; the result is the \term{null member pointer value}
type; the result is the \defnx{null member pointer value}{value!null member pointer}
of that type and is distinguishable from any pointer to member not
created from a null pointer constant.
Such a conversion is called a \term{null member pointer conversion}.
Such a conversion is called a \defnx{null member pointer conversion}{conversion!null member pointer}.
Two null member pointer values of
the same type shall compare equal. The conversion of a null pointer
constant to a pointer to member of cv-qualified type is a single
Expand Down

0 comments on commit 53b6288

Please sign in to comment.