Skip to content

Commit 2d33d9e

Browse files
authored
[oneDPL] Clarify the differences with C++20 range algorithms (#636)
1 parent eeba9b9 commit 2d33d9e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/elements/oneDPL/source/parallel_api/parallel_range_api.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ defined by the C++ standard in ``namespace std::ranges``, they cannot be found b
1717
and cannot be called with explicitly specified template arguments. [*Note*: A typical implementation uses
1818
predefined function objects which static function call operators have the required signatures. -- *end note*]
1919

20-
The following differences to the standard C++ range algorithms apply:
20+
The following differences to the standard serial C++ range algorithms apply:
2121

22+
- List initialization of value parameters is enabled, as in the working draft of the next C++ standard edition (C++26).
2223
- Parallel range algorithms cannot be used in constant expressions.
2324
- The oneDPL execution policy parameter is added.
2425
- Output data sequences are defined as ranges, not iterators.
@@ -34,8 +35,8 @@ The following differences to the standard C++ range algorithms apply:
3435
processed according to the algorithm semantics.
3536
- ``for_each`` does not return its function object.
3637

37-
Except for these differences, the signatures of parallel range algorithms correspond to the working draft
38-
of the next edition of the C++ standard (C++26).
38+
[*Note*: These oneDPL algorithms mostly match the semantics of the parallel range algorithms in the C++26 working draft.
39+
-- *end note*]
3940

4041
Auxiliary Definitions
4142
+++++++++++++++++++++

0 commit comments

Comments
 (0)