Skip to content

Commit c26c967

Browse files
authored
[std] Use math rather than code font for expression placeholders.
1 parent a4589f2 commit c26c967

File tree

4 files changed

+111
-111
lines changed

4 files changed

+111
-111
lines changed

source/basic.tex

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -300,38 +300,38 @@
300300
an unevaluated operand\iref{expr.prop},
301301
a subexpression thereof, or
302302
a conversion in an initialization or conversion sequence in such a context.
303-
The set of \defn{potential results} of an expression \tcode{e} is
303+
The set of \defn{potential results} of an expression $E$ is
304304
defined as follows:
305305
\begin{itemize}
306-
\item If \tcode{e} is an
306+
\item If $E$ is an
307307
\grammarterm{id-expression}\iref{expr.prim.id}, the set
308-
contains only \tcode{e}.
309-
\item If \tcode{e} is a subscripting operation\iref{expr.sub} with
308+
contains only $E$.
309+
\item If $E$ is a subscripting operation\iref{expr.sub} with
310310
an array operand, the set contains the potential results of that operand.
311-
\item If \tcode{e} is a class member access
311+
\item If $E$ is a class member access
312312
expression\iref{expr.ref} of the form
313-
\tcode{e1 . \opt{template} e2}
313+
\tcode{$E_1$ . \opt{template} $E_2$}
314314
naming a non-static data member,
315-
the set contains the potential results of \tcode{e1}.
316-
\item If \tcode{e} is a class member access expression
315+
the set contains the potential results of $E_1$.
316+
\item If $E$ is a class member access expression
317317
naming a static data member,
318318
the set contains the \grammarterm{id-expression} designating the data member.
319-
\item If \tcode{e} is a pointer-to-member
319+
\item If $E$ is a pointer-to-member
320320
expression\iref{expr.mptr.oper} of the form
321-
\tcode{e1 .* e2},
322-
the set contains the potential results of \tcode{e1}.
323-
\item If \tcode{e} has the form \tcode{(e1)}, the set contains the
324-
potential results of \tcode{e1}.
325-
\item If \tcode{e} is a glvalue conditional
321+
\tcode{$E_1$ .* $E_2$},
322+
the set contains the potential results of $E_1$.
323+
\item If $E$ has the form \tcode{($E_1$)}, the set contains the
324+
potential results of $E_1$.
325+
\item If $E$ is a glvalue conditional
326326
expression\iref{expr.cond}, the set is the union of the sets of
327327
potential results of the second and third operands.
328-
\item If \tcode{e} is a comma expression\iref{expr.comma}, the set
328+
\item If $E$ is a comma expression\iref{expr.comma}, the set
329329
contains the potential results of the right operand.
330330
\item Otherwise, the set is empty.
331331
\end{itemize}
332332
\begin{note}
333333
This set is a (possibly-empty) set of \grammarterm{id-expression}{s},
334-
each of which is either \tcode{e} or a subexpression of \tcode{e}.
334+
each of which is either $E$ or a subexpression of $E$.
335335
\begin{example}
336336
In the following example, the set of potential results of the initializer
337337
of \tcode{n} contains the first \tcode{S::x} subexpression, but not the second
@@ -386,21 +386,21 @@
386386

387387
\pnum
388388
A variable \tcode{x} whose name appears as a
389-
potentially-evaluated expression \tcode{e}
390-
is \defnx{odr-used}{odr-use} by \tcode{e} unless
389+
potentially-evaluated expression $E$
390+
is \defnx{odr-used}{odr-use} by $E$ unless
391391
\begin{itemize}
392392
\item
393393
\tcode{x} is a reference that is
394394
usable in constant expressions\iref{expr.const}, or
395395
\item
396396
\tcode{x} is a variable of non-reference type that is
397397
usable in constant expressions and has no mutable subobjects, and
398-
\tcode{e} is an element of the set of potential results of an expression
398+
$E$ is an element of the set of potential results of an expression
399399
of non-volatile-qualified non-class type
400400
to which the lvalue-to-rvalue conversion\iref{conv.lval} is applied, or
401401
\item
402402
\tcode{x} is a variable of non-reference type, and
403-
\tcode{e} is an element of the set of potential results
403+
$E$ is an element of the set of potential results
404404
of a discarded-value expression\iref{expr.prop}
405405
to which the lvalue-to-rvalue conversion is not applied.
406406
\end{itemize}
@@ -5527,30 +5527,30 @@
55275527
\end{example}
55285528

55295529
\pnum
5530-
The \defnx{immediate subexpressions}{immediate subexpression} of an expression \tcode{e} are
5530+
The \defnx{immediate subexpressions}{immediate subexpression} of an expression $E$ are
55315531
\begin{itemize}
55325532
\item
5533-
the constituent expressions of \tcode{e}'s operands\iref{expr.prop},
5533+
the constituent expressions of $E$'s operands\iref{expr.prop},
55345534
\item
5535-
any function call that \tcode{e} implicitly invokes,
5535+
any function call that $E$ implicitly invokes,
55365536
\item
5537-
if \tcode{e} is a \grammarterm{lambda-expression}\iref{expr.prim.lambda},
5537+
if $E$ is a \grammarterm{lambda-expression}\iref{expr.prim.lambda},
55385538
the initialization of the entities captured by copy and
55395539
the constituent expressions of the \grammarterm{initializer} of the \grammarterm{init-capture}{s},
55405540
\item
5541-
if \tcode{e} is a function call\iref{expr.call} or implicitly invokes a function,
5541+
if $E$ is a function call\iref{expr.call} or implicitly invokes a function,
55425542
the constituent expressions of each default argument\iref{dcl.fct.default}
55435543
used in the call, or
55445544
\item
5545-
if \tcode{e} creates an aggregate object\iref{dcl.init.aggr},
5545+
if $E$ creates an aggregate object\iref{dcl.init.aggr},
55465546
the constituent expressions of each default member initializer\iref{class.mem}
55475547
used in the initialization.
55485548
\end{itemize}
55495549

55505550
\pnum
5551-
A \defn{subexpression} of an expression \tcode{e} is
5552-
an immediate subexpression of \tcode{e} or
5553-
a subexpression of an immediate subexpression of \tcode{e}.
5551+
A \defn{subexpression} of an expression $E$ is
5552+
an immediate subexpression of $E$ or
5553+
a subexpression of an immediate subexpression of $E$.
55545554
\begin{note}
55555555
Expressions appearing in the \grammarterm{compound-statement} of a \grammarterm{lambda-expression}
55565556
are not subexpressions of the \grammarterm{lambda-expression}.

source/declarations.tex

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1548,35 +1548,35 @@
15481548

15491549
\pnum
15501550
\indextext{type specifier!\idxcode{decltype}}%
1551-
For an expression \tcode{e}, the type denoted by \tcode{decltype(e)} is defined as follows:
1551+
For an expression $E$, the type denoted by \tcode{decltype($E$)} is defined as follows:
15521552
\begin{itemize}
1553-
\item if \tcode{e} is an unparenthesized \grammarterm{id-expression}
1553+
\item if $E$ is an unparenthesized \grammarterm{id-expression}
15541554
naming a structured binding\iref{dcl.struct.bind},
1555-
\tcode{decltype(e)} is the referenced type as given in
1555+
\tcode{decltype($E$)} is the referenced type as given in
15561556
the specification of the structured binding declaration;
15571557

1558-
\item otherwise, if \tcode{e} is an unparenthesized \grammarterm{id-expression}
1558+
\item otherwise, if $E$ is an unparenthesized \grammarterm{id-expression}
15591559
naming a non-type \grammarterm{template-parameter}\iref{temp.param},
1560-
\tcode{decltype(e)} is the type of the \grammarterm{template-parameter}
1560+
\tcode{decltype($E$)} is the type of the \grammarterm{template-parameter}
15611561
after performing any necessary type deduction
15621562
(\ref{dcl.spec.auto}, \ref{dcl.type.class.deduct});
15631563

1564-
\item otherwise, if \tcode{e} is an unparenthesized \grammarterm{id-expression} or
1564+
\item otherwise, if $E$ is an unparenthesized \grammarterm{id-expression} or
15651565
an unparenthesized
15661566
class
1567-
member access\iref{expr.ref}, \tcode{decltype(e)} is the
1568-
type of the entity named by \tcode{e}. If there is no such entity, or
1569-
if \tcode{e} names a set of overloaded functions, the program is
1567+
member access\iref{expr.ref}, \tcode{decltype($E$)} is the
1568+
type of the entity named by $E$. If there is no such entity, or
1569+
if $E$ names a set of overloaded functions, the program is
15701570
ill-formed;
15711571

1572-
\item otherwise, if \tcode{e} is
1573-
an xvalue, \tcode{decltype(e)} is \tcode{T\&\&}, where \tcode{T} is the type
1574-
of \tcode{e};
1572+
\item otherwise, if $E$ is
1573+
an xvalue, \tcode{decltype($E$)} is \tcode{T\&\&}, where \tcode{T} is the type
1574+
of $E$;
15751575

1576-
\item otherwise, if \tcode{e} is an lvalue, \tcode{decltype(e)}
1577-
is \tcode{T\&}, where \tcode{T} is the type of \tcode{e};
1576+
\item otherwise, if $E$ is an lvalue, \tcode{decltype($E$)}
1577+
is \tcode{T\&}, where \tcode{T} is the type of $E$;
15781578

1579-
\item otherwise, \tcode{decltype(e)} is the type of \tcode{e}.
1579+
\item otherwise, \tcode{decltype($E$)} is the type of $E$.
15801580
\end{itemize}
15811581

15821582
The operand of the \tcode{decltype} specifier is an unevaluated
@@ -1902,32 +1902,32 @@
19021902

19031903
\pnum
19041904
A type \tcode{T} containing a placeholder type,
1905-
and a corresponding initializer \tcode{e},
1905+
and a corresponding initializer $E$,
19061906
are determined as follows:
19071907
\begin{itemize}
19081908
\item
19091909
for a non-discarded \tcode{return} statement that occurs
19101910
in a function declared with a return type
19111911
that contains a placeholder type,
19121912
\tcode{T} is the declared return type
1913-
and \tcode{e} is the operand of the \tcode{return} statement.
1913+
and $E$ is the operand of the \tcode{return} statement.
19141914
If the \tcode{return} statement
19151915
has no operand,
1916-
then \tcode{e} is \tcode{void()};
1916+
then $E$ is \tcode{void()};
19171917
\item
19181918
for a variable declared with a type
19191919
that contains a placeholder type,
19201920
\tcode{T} is the declared type of the variable
1921-
and \tcode{e} is the initializer.
1921+
and $E$ is the initializer.
19221922
If the initialization is direct-list-initialization,
19231923
the initializer shall be a \grammarterm{braced-init-list}
19241924
containing only a single \grammarterm{assignment-expression}
1925-
and \tcode{e} is the \grammarterm{assignment-expression};
1925+
and $E$ is the \grammarterm{assignment-expression};
19261926
\item
19271927
for a non-type template parameter declared with a type
19281928
that contains a placeholder type,
19291929
\tcode{T} is the declared type of the non-type template parameter
1930-
and \tcode{e} is the corresponding template argument.
1930+
and $E$ is the corresponding template argument.
19311931
\end{itemize}
19321932

19331933
In the case of a \tcode{return} statement with no operand
@@ -1938,7 +1938,7 @@
19381938

19391939
\pnum
19401940
If the deduction is for a \tcode{return} statement
1941-
and \tcode{e} is a \grammarterm{braced-init-list}\iref{dcl.init.list},
1941+
and $E$ is a \grammarterm{braced-init-list}\iref{dcl.init.list},
19421942
the program is ill-formed.
19431943

19441944
\pnum
@@ -1956,7 +1956,7 @@
19561956
of template argument deduction from a function call\iref{temp.deduct.call},
19571957
where \tcode{P} is a
19581958
function template parameter type and
1959-
the corresponding argument is \tcode{e}.
1959+
the corresponding argument is $E$.
19601960
If the deduction fails, the declaration is ill-formed.
19611961
Otherwise, $\mathtt{T}'$ is obtained by
19621962
substituting the deduced \tcode{U} into \tcode{P}.
@@ -1987,7 +1987,7 @@
19871987
\tcode{T} shall be the
19881988
placeholder alone. The type deduced for \tcode{T} is
19891989
determined as described in~\ref{dcl.type.simple}, as though
1990-
\tcode{e} had
1990+
$E$ had
19911991
been the operand of the \tcode{decltype}.
19921992
\begin{example}
19931993
\begin{codeblock}

source/exceptions.tex

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -817,40 +817,40 @@
817817
\end{example}
818818

819819
\pnum
820-
An expression \tcode{e} is
820+
An expression $E$ is
821821
\defnx{potentially-throwing}{potentially-throwing!expression} if
822822
\begin{itemize}
823823
\item
824-
\tcode{e} is a function call\iref{expr.call}
824+
$E$ is a function call\iref{expr.call}
825825
whose \grammarterm{postfix-expression}
826826
has a function type,
827827
or a pointer-to-function type,
828828
with a potentially-throwing exception specification,
829829
or
830830
\item
831-
\tcode{e} implicitly invokes a function
831+
$E$ implicitly invokes a function
832832
(such as an overloaded operator,
833833
an allocation function in a \grammarterm{new-expression},
834834
a constructor for a function argument,
835-
or a destructor if \tcode{e} is a full-expression\iref{intro.execution})
835+
or a destructor if $E$ is a full-expression\iref{intro.execution})
836836
that is potentially-throwing,
837837
or
838838
\item
839-
\tcode{e} is a \grammarterm{throw-expression}\iref{expr.throw},
839+
$E$ is a \grammarterm{throw-expression}\iref{expr.throw},
840840
or
841841
\item
842-
\tcode{e} is a \tcode{dynamic_cast} expression that casts to a reference type and
842+
$E$ is a \tcode{dynamic_cast} expression that casts to a reference type and
843843
requires a runtime check\iref{expr.dynamic.cast},
844844
or
845845
\item
846-
\tcode{e} is a \tcode{typeid} expression applied to a
846+
$E$ is a \tcode{typeid} expression applied to a
847847
(possibly parenthesized) built-in unary \tcode{*} operator
848848
applied to a pointer to a
849849
polymorphic class type\iref{expr.typeid},
850850
or
851851
\item
852852
any of the immediate subexpressions\iref{intro.execution}
853-
of \tcode{e} is potentially-throwing.
853+
of $E$ is potentially-throwing.
854854
\end{itemize}
855855

856856
\pnum

0 commit comments

Comments
 (0)