diff --git a/source/elements/oneTBB/source/algorithms/functions/parallel_sort_func.rst b/source/elements/oneTBB/source/algorithms/functions/parallel_sort_func.rst index 488c226212..b608dc348f 100644 --- a/source/elements/oneTBB/source/algorithms/functions/parallel_sort_func.rst +++ b/source/elements/oneTBB/source/algorithms/functions/parallel_sort_func.rst @@ -22,9 +22,9 @@ Function template that sorts a sequence. void parallel_sort( RandomAccessIterator begin, RandomAccessIterator end, const Compare& comp ); template - void parallel_sort( Container& c ); + void parallel_sort( Container&& c ); template - void parallel_sort( Container& c, const Compare& comp ); + void parallel_sort( Container&& c, const Compare& comp ); } // namespace tbb } // namespace oneapi @@ -32,7 +32,7 @@ Function template that sorts a sequence. 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]