Skip to content

Commit 4ae1b0b

Browse files
Apply some suggestions from code review
Co-authored-by: Alexey Kukanov <[email protected]>
1 parent 2ceea7e commit 4ae1b0b

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
@@ -50,17 +50,15 @@ of parallel range algorithms.
5050
template <typename I, typename Proj>
5151
using /*projected-value-type*/ = std::remove_cvref_t<std::invoke_result_t<Proj&, std::iter_value_t<I>&>>;
5252
53-
// C++20 analogue of nothrow-random-access-range proposed for C++26 in P3179R9; exposition only
53+
// C++20 analogue of nothrow-random-access-range in the C++26 working draft; exposition only
54+
// Semantic requirements are listed further below
5455
template <typename R>
5556
concept nothrow-random-access-range =
5657
std::ranges::random_access_range<R> &&
5758
std::is_lvalue_reference_v<std::iter_reference_t<std::ranges::iterator_t<R>>> &&
5859
std::same_as<std::remove_cvref_t<std::iter_reference_t<std::ranges::iterator_t<R>>>,
5960
std::iter_value_t<std::ranges::iterator_t<R>>>;
6061
61-
Semantic Requirements
62-
~~~~~~~~~~~~~~~~~~~~~
63-
6462
A type ``R`` models ``nothrow-random-access-range`` if no exceptions are thrown from:
6563

6664
- increment, decrement, copy construction, move construction, copy assignment, move assignment,
@@ -572,7 +570,7 @@ Uninitialized Memory Algorithms
572570
std::ranges::sized_range<R> &&
573571
std::default_initializable<std::ranges::range_value_t<R>>
574572
std::ranges::borrowed_iterator_t<R>
575-
uninitialized_value_construct (ExecutionPolicy&& pol, R&& r, const std::ranges::range_value_t<R>& value);
573+
uninitialized_value_construct (ExecutionPolicy&& pol, R&& r);
576574
577575
// uninitialized_copy
578576
template <typename ExecutionPolicy, std::random_access_range IR, /*nothrow-random-access-range*/ OR>
@@ -594,8 +592,7 @@ Uninitialized Memory Algorithms
594592
uninitialized_move (ExecutionPolicy&& pol, IR&& in_range, OR&& out_range);
595593
596594
// uninitialized_fill
597-
template <typename ExecutionPolicy, /*nothrow-random-access-range*/ R,
598-
typename T>
595+
template <typename ExecutionPolicy, /*nothrow-random-access-range*/ R, typename T>
599596
requires oneapi::dpl::is_execution_policy_v<std::remove_cvref_t<ExecutionPolicy>> &&
600597
std::ranges::sized_range<R> &&
601598
std::constructible_from<std::ranges::range_value_t<R>, const T&>

0 commit comments

Comments
 (0)