Skip to content

Commit f1675c4

Browse files
committed
[thread.{thread.constr,jthread.cons}] Move the "existence of $i$ to Mandates:.
This change separates the local notitaional definitions from the requirement whose violation makes the program ill-formed: the latter should probably appear in one of the standard Elements rather than in a rogue paragraph.
1 parent 9add7a5 commit f1675c4

1 file changed

Lines changed: 10 additions & 12 deletions

File tree

source/threads.tex

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,13 +1802,12 @@
18021802
\end{itemize}
18031803

18041804
\pnum
1805-
Then:
1806-
\begin{itemize}
1807-
\item
18081805
Let $i$ be the smallest value such that
18091806
\tcode{decay_t<Args...[$i$]>}
1810-
is not a thread attribute type.
1811-
If no such $i$ exists, the program is ill-formed.
1807+
is not a thread attribute type,
1808+
if such a value exists.
1809+
Then the following notation is used:
1810+
\begin{itemize}
18121811
\item
18131812
Let \tcode{F} be \tcode{Args...[$i$]}.
18141813
\item
@@ -1833,7 +1832,7 @@
18331832

18341833
\pnum
18351834
\mandates
1836-
The following are all \tcode{true}:
1835+
The value $i$ exists, and the following are all \tcode{true}:
18371836
\begin{itemize}
18381837
\item \tcode{is_constructible_v<decay_t<F>, F>},
18391838
\item \tcode{(is_constructible_v<decay_t<FArgs>, FArgs> \&\& ...)},
@@ -2178,13 +2177,12 @@
21782177
\end{itemize}
21792178

21802179
\pnum
2181-
Then:
2182-
\begin{itemize}
2183-
\item
21842180
Let $i$ be the smallest value such that
21852181
\tcode{decay_t<Args...[$i$]>}
2186-
is not a thread attribute type.
2187-
If no such $i$ exists, the program is ill-formed.
2182+
is not a thread attribute type,
2183+
if such a value exists.
2184+
Then the following notation is used:
2185+
\begin{itemize}
21882186
\item
21892187
Let \tcode{F} be \tcode{Args...[$i$]}.
21902188
\item
@@ -2209,7 +2207,7 @@
22092207

22102208
\pnum
22112209
\mandates
2212-
The following are all \tcode{true}:
2210+
The value $i$ exists, and the following are all \tcode{true}:
22132211
\begin{itemize}
22142212
\item \tcode{is_constructible_v<decay_t<F>, F>},
22152213
\item \tcode{(is_constructible_v<decay_t<FArgs>, FArgs> \&\& ...)},

0 commit comments

Comments
 (0)