Skip to content

Commit

Permalink
Generator constraints
Browse files Browse the repository at this point in the history
ChangeLog:

	* P1928/changelog.tex:
	* P1928/wording.tex:
  • Loading branch information
mattkretz committed Jun 27, 2024
1 parent 81d52b3 commit fa29296
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions P1928/changelog.tex
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ \section{Changelog}
\item Instead of writing “satisfies X” in \emph{Constraints} and “models X” in
\emph{Preconditions}, say only “models X” in \emph{Constraints}.
\item Replace \code{is_trivial_v} with “is trivially copyable”.
\item First shot at improving generator function constraints.

\todo Reorder \code{simd} and \code{simd_mask} specification in the wording (mask first).
\end{revision}
5 changes: 3 additions & 2 deletions P1928/wording.tex
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,9 @@

\begin{itemdescr}
\pnum\constraints
\tcode{basic_simd(gen(integral_constant<\simdsizetype, i>()))} is well-formed
\foralli.
\tcode{basic_simd(gen(integral_constant<\simdsizetype, $i$>()))} is well-formed
and the return type of \tcode{gen(integral_constant<\simdsizetype, $i$>())}
satisfies \tcode{convertible_to<value_type>} \foralli.

\pnum\effects
Initializes the $i^\text{th}$ element with
Expand Down

0 comments on commit fa29296

Please sign in to comment.