Skip to content

Commit 6e8b0d0

Browse files
author
Dawn Perchik
committed
LWG2932 Constraints on parallel algorithm implementations are underspecified
[algorithms.parallel.exec]/p1 Fixed punctuation.
1 parent 3184620 commit 6e8b0d0

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

source/algorithms.tex

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,19 @@
12941294
which describe the manner in which the execution of these algorithms may be
12951295
parallelized and the manner in which they apply the element access functions.
12961296

1297+
\pnum
1298+
If an object is modified by an element access function,
1299+
the algorithm will perform no other unsynchronized accesses to that object.
1300+
The modifying element access functions are those
1301+
which are specified as modifying the object in the relevant concept.
1302+
\begin{note}
1303+
For example,
1304+
\tcode{swap()}, \tcode{++}, \tcode{--}, \tcode{@=}, and assignments
1305+
modify the object.
1306+
For the assignment and \tcode{@=} operators,
1307+
only the left argument is modified.
1308+
\end{note}
1309+
12971310
\pnum
12981311
Unless otherwise stated, implementations may make arbitrary copies of elements
12991312
(with type \tcode{T}) from sequences where \tcode{is_trivially_copy_constructible_v<T>}

0 commit comments

Comments
 (0)