Skip to content

Commit 86c6d21

Browse files
Apply some suggestions from code review
Co-authored-by: Alexey Kukanov <[email protected]>
1 parent 987742a commit 86c6d21

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,15 @@ of parallel range algorithms.
5555
template <typename I, typename Proj>
5656
using /*projected-value-type*/ = std::remove_cvref_t<std::invoke_result_t<Proj&, std::iter_value_t<I>&>>;
5757
58-
// C++20 analogue of nothrow-random-access-range proposed for C++26 in P3179R9; exposition only
58+
// C++20 analogue of nothrow-random-access-range in the C++26 working draft; exposition only
59+
// Semantic requirements are listed further below
5960
template <typename R>
6061
concept nothrow-random-access-range =
6162
std::ranges::random_access_range<R> &&
6263
std::is_lvalue_reference_v<std::iter_reference_t<std::ranges::iterator_t<R>>> &&
6364
std::same_as<std::remove_cvref_t<std::iter_reference_t<std::ranges::iterator_t<R>>>,
6465
std::iter_value_t<std::ranges::iterator_t<R>>>;
6566
66-
Semantic Requirements
67-
~~~~~~~~~~~~~~~~~~~~~
68-
6967
A type ``R`` models ``nothrow-random-access-range`` if no exceptions are thrown from:
7068

7169
- increment, decrement, copy construction, move construction, copy assignment, move assignment,
@@ -627,7 +625,7 @@ Uninitialized Memory Algorithms
627625
std::ranges::sized_range<R> &&
628626
std::default_initializable<std::ranges::range_value_t<R>>
629627
std::ranges::borrowed_iterator_t<R>
630-
uninitialized_value_construct (ExecutionPolicy&& pol, R&& r, const std::ranges::range_value_t<R>& value);
628+
uninitialized_value_construct (ExecutionPolicy&& pol, R&& r);
631629
632630
// uninitialized_copy
633631
template <typename ExecutionPolicy, std::random_access_range IR, /*nothrow-random-access-range*/ OR>
@@ -649,8 +647,7 @@ Uninitialized Memory Algorithms
649647
uninitialized_move (ExecutionPolicy&& pol, IR&& in_range, OR&& out_range);
650648
651649
// uninitialized_fill
652-
template <typename ExecutionPolicy, /*nothrow-random-access-range*/ R,
653-
typename T>
650+
template <typename ExecutionPolicy, /*nothrow-random-access-range*/ R, typename T>
654651
requires oneapi::dpl::is_execution_policy_v<std::remove_cvref_t<ExecutionPolicy>> &&
655652
std::ranges::sized_range<R> &&
656653
std::constructible_from<std::ranges::range_value_t<R>, const T&>

0 commit comments

Comments
 (0)