Skip to content

Commit a03b8b7

Browse files
AlisdairMtkoeppe
authored andcommitted
[temp.param] Introduce term to xref structural type
The current cross-references to [temp.param] appear confusing, as the structural type definition is buried a couple of pages below. Also, this change looks clearer in the source.
1 parent bbaa4a4 commit a03b8b7

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

source/containers.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6188,7 +6188,7 @@
61886188
for operations where there is additional semantic information.
61896189

61906190
\pnum
6191-
\tcode{array<T, N>} is a structural type\iref{temp.param} if
6191+
\tcode{array<T, N>} is a structural type\iref{term.structural.type} if
61926192
\tcode{T} is a structural type.
61936193
Two values \tcode{a1} and \tcode{a2} of type \tcode{array<T, N>}
61946194
are template-argument-equivalent\iref{temp.type} if and only if

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1877,7 +1877,7 @@
18771877

18781878
\pnum
18791879
The closure type is not an aggregate type\iref{dcl.init.aggr} and
1880-
not a structural type\iref{temp.param}.
1880+
not a structural type\iref{term.structural.type}.
18811881
An implementation may define the closure type differently from what
18821882
is described below provided this does not alter the observable behavior of the program
18831883
other than by changing:

source/templates.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@
391391
are ignored when determining its type.
392392

393393
\pnum
394+
\label{term.structural.type}%
394395
A \defnadj{structural}{type} is one of the following:
395396
\begin{itemize}
396397
\item a scalar type, or

source/utilities.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@
797797
is \tcode{true}, then the destructor of \tcode{pair} is trivial.
798798

799799
\pnum
800-
\tcode{pair<T, U>} is a structural type\iref{temp.param}
800+
\tcode{pair<T, U>} is a structural type\iref{term.structural.type}
801801
if \tcode{T} and \tcode{U} are both structural types.
802802
Two values \tcode{p1} and \tcode{p2} of type \tcode{pair<T, U>}
803803
are template-argument-equivalent\iref{temp.type} if and only if

0 commit comments

Comments
 (0)