From 3f5216a5c3bc72ad2c215c9235a6ab463cd33376 Mon Sep 17 00:00:00 2001 From: Matthias Kretz Date: Wed, 26 Jun 2024 20:36:58 -0500 Subject: [PATCH] Reword ctor effects ChangeLog: * P1928/changelog.tex: * P1928/wording.tex: --- P1928/changelog.tex | 2 ++ P1928/wording.tex | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/P1928/changelog.tex b/P1928/changelog.tex index 0274ded..d4e714a 100644 --- a/P1928/changelog.tex +++ b/P1928/changelog.tex @@ -154,5 +154,7 @@ \section{Changelog} \item Reword \code{rebind_simd} and \code{resize_simd}. \item Remove mention of implementation-defined load/store flags. \item Remove paragraph about default initialization of \simd. +\item Reword all constructor \emph{Effects} from “Constructs an object \ldots” + to “Initializes \ldots”. \todo Reorder \code{simd} and \code{simd_mask} specification in the wording (mask first). \end{revision} diff --git a/P1928/wording.tex b/P1928/wording.tex index 6e9464e..3f14bd7 100644 --- a/P1928/wording.tex +++ b/P1928/wording.tex @@ -750,7 +750,7 @@ \tcode{\simdsizev == size()} is \tcode{true}. \pnum\effects - Constructs an object where the $i^\text{th}$ element equals \tcode{static_cast(x[$i$])} \foralli. + Initializes the $i^\text{th}$ element with \tcode{static_cast(x[$i$])} \foralli. \pnum\remarks %The constructor is \tcode{explicit} if @@ -779,8 +779,8 @@ \foralli. \pnum\effects - Constructs an object where the $i^\text{th}$ element is initialized to - \tcode{gen(integral_constant<\simdsizetype, i>())}. + Initializes the $i^\text{th}$ element with + \tcode{gen(integral_constant<\simdsizetype, i>())} \foralli. \pnum The calls to \tcode{gen} are unsequenced with respect to each other. @@ -819,7 +819,7 @@ \begin{itemdescr} \SimdLoadDescr {\tcode{[first, first + size())} is a valid range.} - {Constructs an object where the $i^\text{th}$ element is initialized to \tcode{static_cast(first[$i$])} \foralli.} + {Initializes the $i^\text{th}$ element with \tcode{static_cast(first[$i$])} \foralli.} \end{itemdescr} \begin{itemdecl} @@ -830,7 +830,7 @@ \begin{itemdescr} \SimdLoadDescr {\validMaskedRange} - {Constructs an object where the $i^\text{th}$ element is initialized to \tcode{mask[$i$] ? static_cast(first[$i$]) : T()} \foralli.} + {Initializes the $i^\text{th}$ element with \tcode{mask[$i$] ? static_cast(first[$i$]) : T()} \foralli.} \end{itemdescr} \rSec2[simd.copy]{\tcode{basic_simd} copy functions} @@ -1623,7 +1623,7 @@ \begin{itemdescr} \pnum\effects - Constructs an object with each element initialized to \tcode{x}. + Initializes each element with \tcode{x}. \end{itemdescr} \begin{itemdecl} @@ -1636,7 +1636,7 @@ \tcode{\simdsizev == size()}. \pnum\effects - Constructs an object of type \tcode{basic_simd_mask} where the $i^\text{th}$ element equals \tcode{x[$i$]} \foralli. + Initializes the $i^\text{th}$ element with \tcode{x[$i$]} \foralli. \end{itemdescr} \begin{itemdecl} @@ -1649,8 +1649,8 @@ well-formed \foralli. \pnum\effects - Constructs an object where the $i^\text{th}$ element is initialized to - \tcode{gen(integral_constant<\simdsizetype, i>())}. + Initializes the $i^\text{th}$ element with + \tcode{gen(integral_constant<\simdsizetype, i>())} \foralli. \pnum The calls to \tcode{gen} are unsequenced with respect to each other. @@ -1684,7 +1684,7 @@ \begin{itemdescr} \MaskLoadDescr {\tcode{[first, first + size())} is a valid range.} - {Constructs an object where the $i^\text{th}$ element is initialized to \tcode{first[$i$]} \foralli.} + {Initializes the $i^\text{th}$ element with \tcode{first[$i$]} \foralli.} \end{itemdescr} \begin{itemdecl} @@ -1695,7 +1695,7 @@ \begin{itemdescr} \MaskLoadDescr {\validMaskedRange} - {Constructs an object where the $i^\text{th}$ element is initialized to \tcode{mask[$i$] ? first[$i$] : false} \foralli.} + {Initializes the $i^\text{th}$ element with \tcode{mask[$i$] ? first[$i$] : false} \foralli.} \end{itemdescr} \rSec2[simd.mask.copy]{\tcode{basic_simd_mask} copy functions}