Skip to content

Commit 576182b

Browse files
committed
[std] Use \keyword for 'dynamic_cast'.
1 parent 516ac29 commit 576182b

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

source/basic.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@
590590
\item an expression that is not a null pointer constant, and has type
591591
other than \cv{}~\tcode{void*}, is converted to the type pointer to \tcode{T}
592592
or reference to \tcode{T} using a standard conversion\iref{conv},
593-
a \tcode{dynamic_cast}\iref{expr.dynamic.cast} or
593+
a \keyword{dynamic_cast}\iref{expr.dynamic.cast} or
594594
a \keyword{static_cast}\iref{expr.static.cast}, or
595595
\item a class member access operator is applied to an expression of type
596596
\tcode{T}\iref{expr.ref}, or
@@ -3374,7 +3374,7 @@
33743374
\cv{}~\tcode{std::byte}\iref{cstddef.syn}, or
33753375
\item
33763376
the pointer is used as the operand of a
3377-
\tcode{dynamic_cast}\iref{expr.dynamic.cast}.
3377+
\keyword{dynamic_cast}\iref{expr.dynamic.cast}.
33783378
\end{itemize}
33793379
\begin{example}
33803380
\begin{codeblock}
@@ -3423,7 +3423,7 @@
34233423
\item the glvalue is used to call a non-static member function of the object, or
34243424
\item the glvalue is bound to a reference to a virtual base class\iref{dcl.init.ref}, or
34253425
\item the glvalue is used as the operand of a
3426-
\tcode{dynamic_cast}\iref{expr.dynamic.cast} or as the operand of
3426+
\keyword{dynamic_cast}\iref{expr.dynamic.cast} or as the operand of
34273427
\tcode{typeid}.
34283428
\end{itemize}
34293429

@@ -4367,7 +4367,7 @@
43674367
\begin{itemize}
43684368
\item \keyword{const_cast}\iref{expr.const.cast},
43694369
\item \keyword{static_cast}\iref{expr.static.cast},
4370-
\item \tcode{dynamic_cast}\iref{expr.dynamic.cast}, or
4370+
\item \keyword{dynamic_cast}\iref{expr.dynamic.cast}, or
43714371
\item \tcode{reinterpret_cast}\iref{expr.reinterpret.cast}
43724372
\end{itemize}
43734373
converting, without a user-defined conversion,

source/classes.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5625,7 +5625,7 @@
56255625
Similarly, an object under construction can be the operand of the
56265626
\tcode{typeid}
56275627
operator\iref{expr.typeid} or of a
5628-
\tcode{dynamic_cast}\iref{expr.dynamic.cast}.
5628+
\keyword{dynamic_cast}\iref{expr.dynamic.cast}.
56295629
However, if these operations are performed in a
56305630
\grammarterm{ctor-initializer}
56315631
(or in a function called directly or indirectly from a
@@ -5667,7 +5667,7 @@
56675667
\ref{class.cdtor} describes the result of virtual function calls,
56685668
\tcode{typeid}
56695669
and
5670-
\tcode{dynamic_cast}s
5670+
\keyword{dynamic_cast}s
56715671
during construction for the well-defined cases;
56725672
that is, describes the polymorphic behavior
56735673
of an object under construction.
@@ -6004,24 +6004,24 @@
60046004
\indextext{destruction!dynamic cast and}%
60056005
\indextext{cast!dynamic!construction and}%
60066006
\indextext{cast!dynamic!destruction and}%
6007-
\tcode{dynamic_cast}s\iref{expr.dynamic.cast} can be used during construction
6007+
\keyword{dynamic_cast}s\iref{expr.dynamic.cast} can be used during construction
60086008
or destruction\iref{class.base.init}. When a
6009-
\tcode{dynamic_cast}
6009+
\keyword{dynamic_cast}
60106010
is used in a constructor (including the
60116011
\grammarterm{mem-initializer} or default member initializer
60126012
for a non-static data member)
60136013
or in a destructor, or used in a function called (directly or indirectly) from
60146014
a constructor or destructor, if the operand of the
6015-
\tcode{dynamic_cast}
6015+
\keyword{dynamic_cast}
60166016
refers to the object under construction or destruction, this object is
60176017
considered to be a most derived object that has the type of the constructor or
60186018
destructor's class.
60196019
If the operand of the
6020-
\tcode{dynamic_cast}
6020+
\keyword{dynamic_cast}
60216021
refers to the object under construction or destruction and the static type of
60226022
the operand is not a pointer to or object of the constructor or destructor's
60236023
own class or one of its bases, the
6024-
\tcode{dynamic_cast}
6024+
\keyword{dynamic_cast}
60256025
results in undefined behavior.
60266026
\begin{example}
60276027
\begin{codeblock}

source/exceptions.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
An exception can be thrown from one of the following contexts:
197197
\grammarterm{throw-expression}{s}\iref{expr.throw},
198198
allocation functions\iref{basic.stc.dynamic.allocation},
199-
\tcode{dynamic_cast}\iref{expr.dynamic.cast},
199+
\keyword{dynamic_cast}\iref{expr.dynamic.cast},
200200
\tcode{typeid}\iref{expr.typeid},
201201
\grammarterm{new-expression}{s}\iref{expr.new}, and standard library
202202
functions\iref{structure.specifications}.
@@ -823,7 +823,7 @@
823823
$E$ is a \grammarterm{throw-expression}\iref{expr.throw},
824824
or
825825
\item
826-
$E$ is a \tcode{dynamic_cast} expression that casts to a reference type and
826+
$E$ is a \keyword{dynamic_cast} expression that casts to a reference type and
827827
requires a runtime check\iref{expr.dynamic.cast},
828828
or
829829
\item

source/expressions.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2929,7 +2929,7 @@
29292929
\pnum
29302930
\begin{note}
29312931
The \tcode{>} token following the
2932-
\grammarterm{type-id} in a \tcode{dynamic_cast},
2932+
\grammarterm{type-id} in a \keyword{dynamic_cast},
29332933
\keyword{static_cast}, \tcode{reinterpret_cast}, or
29342934
\keyword{const_cast} can be the product of replacing a
29352935
\tcode{>>} token by two consecutive \tcode{>}
@@ -3488,7 +3488,7 @@
34883488
converting the expression \tcode{v} to type \tcode{T}.
34893489
\indextext{type!incomplete}%
34903490
\tcode{T} shall be a pointer or reference to a complete class type, or
3491-
``pointer to \cv{} \tcode{void}''. The \tcode{dynamic_cast} operator shall not cast
3491+
``pointer to \cv{} \tcode{void}''. The \keyword{dynamic_cast} operator shall not cast
34923492
away constness\iref{expr.const.cast}.
34933493

34943494
\pnum
@@ -3605,7 +3605,7 @@
36053605
\end{codeblock}
36063606
\end{example}
36073607
\begin{note}
3608-
Subclause \ref{class.cdtor} describes the behavior of a \tcode{dynamic_cast}
3608+
Subclause \ref{class.cdtor} describes the behavior of a \keyword{dynamic_cast}
36093609
applied to an object under construction or destruction.
36103610
\end{note}
36113611

@@ -5658,7 +5658,7 @@
56585658
\pnum
56595659
An explicit type conversion can be expressed using functional
56605660
notation\iref{expr.type.conv}, a type conversion operator
5661-
(\tcode{dynamic_cast}, \keyword{static_cast}, \tcode{reinterpret_cast},
5661+
(\keyword{dynamic_cast}, \keyword{static_cast}, \tcode{reinterpret_cast},
56625662
\keyword{const_cast}), or the \term{cast} notation.
56635663

56645664
\begin{bnf}

source/support.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3248,7 +3248,7 @@
32483248
defines the type of objects thrown
32493249
as exceptions by the implementation to report the execution of an invalid
32503250
\indextext{cast!dynamic}%
3251-
\tcode{dynamic_cast}
3251+
\keyword{dynamic_cast}
32523252
expression\iref{expr.dynamic.cast}.
32533253

32543254
\indexlibrarymember{what}{bad_cast}%
@@ -3936,7 +3936,7 @@
39363936
\pnum
39373937
\begin{note}
39383938
\tcode{nested_exception} has a virtual destructor to make it a
3939-
polymorphic class. Its presence can be tested for with \tcode{dynamic_cast}.
3939+
polymorphic class. Its presence can be tested for with \keyword{dynamic_cast}.
39403940
\end{note}
39413941

39423942
\indexlibraryctor{nested_exception}%
@@ -5845,7 +5845,7 @@
58455845
an access to an object with thread storage duration;
58465846

58475847
\item
5848-
a \tcode{dynamic_cast} expression;
5848+
a \keyword{dynamic_cast} expression;
58495849

58505850
\item
58515851
throwing of an exception;

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
\tcode{>}
748748
\begin{footnote}
749749
A \tcode{>} that encloses the \grammarterm{type-id}
750-
of a \tcode{dynamic_cast}, \keyword{static_cast}, \tcode{reinterpret_cast}
750+
of a \keyword{dynamic_cast}, \keyword{static_cast}, \tcode{reinterpret_cast}
751751
or \keyword{const_cast}, or which encloses the \grammarterm{template-argument}{s}
752752
of a subsequent \grammarterm{template-id}, is considered nested for the purpose
753753
of this description.

0 commit comments

Comments
 (0)