Skip to content

Commit c8176d6

Browse files
jensmaurertkoeppe
authored andcommitted
[std] Use \keyword for 'typename'.
1 parent e027653 commit c8176d6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/declarations.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@
13251325
a type to be deduced\iref{dcl.spec.auto}.
13261326
\indextext{deduction!class template arguments}%
13271327
A \grammarterm{type-specifier} of the form
1328-
\opt{\tcode{typename}} \opt{\grammarterm{nested-name-specifier}} \grammarterm{template-name}
1328+
\opt{\keyword{typename}} \opt{\grammarterm{nested-name-specifier}} \grammarterm{template-name}
13291329
is a placeholder for
13301330
a deduced class type\iref{dcl.type.class.deduct}.
13311331
The \grammarterm{nested-name-specifier}, if any, shall be non-dependent and

source/templates.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,14 +260,14 @@
260260
There is no semantic difference between
261261
\tcode{class}
262262
and
263-
\tcode{typename}
263+
\keyword{typename}
264264
in a
265265
\grammarterm{type-parameter-key}.
266-
\tcode{typename}
266+
\keyword{typename}
267267
followed by an
268268
\grammarterm{unqualified-id}
269269
names a template type parameter.
270-
\tcode{typename}
270+
\keyword{typename}
271271
followed by a
272272
\grammarterm{qualified-id}
273273
denotes the type in a non-type
@@ -797,7 +797,7 @@
797797
\end{note}
798798
\begin{note}
799799
As is the case with the
800-
\tcode{typename}
800+
\keyword{typename}
801801
prefix, the
802802
\keyword{template}
803803
prefix is allowed
@@ -4294,10 +4294,10 @@
42944294
A \grammarterm{typename-specifier}
42954295
denotes the type or class template
42964296
denoted by the \grammarterm{simple-type-specifier}\iref{dcl.type.simple}
4297-
formed by omitting the keyword \tcode{typename}.
4297+
formed by omitting the keyword \keyword{typename}.
42984298
\begin{note}
42994299
The usual qualified name lookup\iref{basic.lookup.qual} applies
4300-
even in the presence of \tcode{typename}.
4300+
even in the presence of \keyword{typename}.
43014301
\end{note}
43024302
\begin{example}
43034303
\begin{codeblock}

0 commit comments

Comments
 (0)