Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[oneTBB] Pass range to the parallel_sort algorithm by forwarding reference #380

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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