Skip to content

Commit

Permalink
[oneTBB] Pass range to the parallel_sort algorithm by forwarding refe…
Browse files Browse the repository at this point in the history
…rence (#380)

* oneTBB: Pass range to the parallel_sort algorithm by forwarding reference

Signed-off-by: Kochin Ivan <[email protected]>
  • Loading branch information
Ivan Kochin authored Oct 28, 2021
1 parent a67faad commit 6f04959
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,17 @@ Function template that sorts a sequence.
void parallel_sort( RandomAccessIterator begin, RandomAccessIterator end, const Compare& comp );
template<typename Container>
void parallel_sort( Container& c );
void parallel_sort( Container&& c );
template<typename Container>
void parallel_sort( Container& c, const Compare& comp );
void parallel_sort( Container&& c, const Compare& comp );
} // namespace tbb
} // namespace oneapi
Requirements:

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

0 comments on commit 6f04959

Please sign in to comment.