File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 664
664
\indextext {class name!\idxcode {typedef}}%
665
665
\indextext {enum name!\idxcode {typedef}}%
666
666
\indextext {class!unnamed}%
667
- If the typedef declaration defines an unnamed class or enumeration, the first
668
- \grammarterm {typedef-name} declared by the declaration to be that type
669
- is used to denote the type for linkage purposes only\iref {basic.link }.
667
+ An unnamed class or enumeration $ C$ defined in a typedef declaration has
668
+ the first \grammarterm {typedef-name}
669
+ declared by the declaration to be of type $ C$
670
+ as its \defn {typedef name for linkage purposes}\iref {basic.link }.
670
671
\begin {note }
671
672
A typedef declaration involving a \grammarterm {lambda-expression}
672
673
does not itself define the associated closure type,
673
- and so the closure type is not given a name for linkage purposes.
674
+ and so the closure type is not given a typedef name for linkage purposes.
674
675
\end {note }
675
676
\begin {example }
676
677
\begin {codeblock }
677
- typedef struct { } *ps, S; // \tcode {S} is the class name for linkage purposes
678
- typedef decltype([]{}) C; // the closure type has no name for linkage purposes
678
+ typedef struct { } *ps, S; // \tcode {S} is the typedef name for linkage purposes
679
+ typedef decltype([]{}) C; // the closure type has no typedef name for linkage purposes
679
680
\end {codeblock }
680
681
\end {example }
681
682
You can’t perform that action at this time.
0 commit comments