Skip to content

Commit c9e7524

Browse files
committed
[meta.reflection.result] Reorder and reword paragraphs for clarity.
After the "Constant When" => "Throws" reordering, the definition of the invented variable TCls had moved far from where it was being referenced. This reordering moves it closer, adds a "defined below", and moves the example to the end.
1 parent 5396d89 commit c9e7524

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

source/meta.tex

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6103,11 +6103,23 @@
61036103

61046104
\pnum
61056105
\returns
6106-
\tcode{template_arguments_of(\reflexpr{TCls<$V$>})[0]}.
6106+
\tcode{template_arguments_of(\reflexpr{TCls<$V$>})[0]},
6107+
with \tcode{TCls} as defined below.
61076108
\begin{note}
61086109
This is a reflection of an object for class types,
61096110
and a reflection of a value otherwise.
61106111
\end{note}
6112+
6113+
\pnum
6114+
\throws
6115+
\tcode{meta::exception} unless
6116+
the \grammarterm{template-id} \tcode{TCls<$V$>} would be valid
6117+
given the invented variable
6118+
\begin{codeblock}
6119+
template<T P> struct TCls;
6120+
\end{codeblock}
6121+
6122+
\pnum
61116123
\begin{example}
61126124
\begin{codeblock}
61136125
template<auto D>
@@ -6129,15 +6141,6 @@
61296141
// points to string literal
61306142
\end{codeblock}
61316143
\end{example}
6132-
6133-
\pnum
6134-
\throws
6135-
\tcode{meta::exception} unless
6136-
the \grammarterm{template-id} \tcode{TCls<$V$>} would be valid
6137-
given the invented variable
6138-
\begin{codeblock}
6139-
template<T P> struct TCls;
6140-
\end{codeblock}
61416144
\end{itemdescr}
61426145

61436146
\indexlibraryglobal{reflect_object}%

0 commit comments

Comments
 (0)