Skip to content

Commit 6f04959

Browse files
author
Ivan Kochin
authored
[oneTBB] Pass range to the parallel_sort algorithm by forwarding reference (#380)
* oneTBB: Pass range to the parallel_sort algorithm by forwarding reference Signed-off-by: Kochin Ivan <kochin.ivan@intel.com>
1 parent a67faad commit 6f04959

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

source/elements/oneTBB/source/algorithms/functions/parallel_sort_func.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ Function template that sorts a sequence.
2222
void parallel_sort( RandomAccessIterator begin, RandomAccessIterator end, const Compare& comp );
2323
2424
template<typename Container>
25-
void parallel_sort( Container& c );
25+
void parallel_sort( Container&& c );
2626
template<typename Container>
27-
void parallel_sort( Container& c, const Compare& comp );
27+
void parallel_sort( Container&& c, const Compare& comp );
2828
2929
} // namespace tbb
3030
} // namespace oneapi
3131
3232
Requirements:
3333

3434
* The ``RandomAccessIterator`` type must meet the `Random Access Iterators` requirements from
35-
[random.access.iterators] and `Swappable` requirements from the [swappable.requirements] ISO C++ Standard section.
35+
[random.access.iterators] and `ValueSwappable` requirements from the [swappable.requirements] ISO C++ Standard section.
3636
* The ``Compare`` type must meet the `Compare` type requirements from the [alg.sorting] ISO C++ Standard section.
3737
* The ``Container`` type must meet the :doc:`ContainerBasedSequence requirements <../../named_requirements/algorithms/container_based_sequence>`
3838
which iterators must meet the `Random Access Iterators` requirements from [random.access.iterators]

0 commit comments

Comments
 (0)