Skip to content

Commit ea935bd

Browse files
Use a plain std::ranges::in_in_out_result
1 parent 9765784 commit ea935bd

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,24 @@ The following differences to the standard C++ range algorithms apply:
3333
In that case, the returned value contains iterators pointing to the positions past the last elements
3434
processed according to the algorithm semantics.
3535
- ``for_each`` does not return its function object.
36-
- ``reverse_copy_truncated_result`` alias used by ``reverse_copy`` resides in ``namespace oneapi::dpl::ranges``
37-
instead of ``namespace std::ranges``.
36+
- ``reverse_copy`` returns ``std::ranges::in_in_out_result`` instead of the alias
37+
``std::ranges::reverse_copy_truncated_result``.
3838

3939
Except for these differences, the signatures of parallel range algorithms correspond to the working draft
4040
of the next edition of the C++ standard (C++26).
4141

4242
Auxiliary Definitions
4343
+++++++++++++++++++++
4444

45-
The following auxiliary entities are defined to aid the specification of parallel range algorithms.
45+
The following auxiliary entities are only defined for the purpose of exposition, to aid the specification
46+
of parallel range algorithms.
4647

4748
.. code:: cpp
4849
4950
// C++20 analogue of std::projected_value_t; exposition only
5051
template<typename I, typename Proj>
5152
using /*projected-value-type*/ = std::remove_cvref_t<std::invoke_result_t<Proj&, std::iter_value_t<I>&>>;
5253
53-
// C++20 analogue of std::ranges::reverse_copy_truncated_result
54-
namespace oneapi::dpl::ranges {
55-
template<typename I, typename O>
56-
using reverse_copy_truncated_result = std::ranges::in_in_out_result<I, I, O>;
57-
}
58-
5954
Whole Sequence Operations
6055
+++++++++++++++++++++++++
6156

@@ -442,8 +437,9 @@ Copying Mutating Operations
442437
requires oneapi::dpl::is_execution_policy_v<std::remove_cvref_t<ExecutionPolicy>> &&
443438
std::ranges::sized_range<R> && std::ranges::sized_range<OutR> &&
444439
std::indirectly_copyable<std::ranges::iterator_t<R>, std::ranges::iterator_t<OutR>>
445-
oneapi::dpl::ranges::reverse_copy_truncated_result<std::ranges::borrowed_iterator_t<R>,
446-
std::ranges::borrowed_iterator_t<OutR>>
440+
std::ranges::in_in_out_result<std::ranges::borrowed_iterator_t<R>,
441+
std::ranges::borrowed_iterator_t<R>,
442+
std::ranges::borrowed_iterator_t<OutR>>
447443
reverse_copy (ExecutionPolicy&& pol, R&& r, OutR&& result);
448444
449445
// transform (unary)

0 commit comments

Comments
 (0)