Skip to content

Commit

Permalink
Describe comparator
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Sobolev <[email protected]>
  • Loading branch information
dmitriy-sobolev committed Sep 2, 2024
1 parent ef9f079 commit b607ceb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/elements/oneDPL/source/parallel_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,9 @@ and this association is maintained throughout the sorting process.

The order of equal keys is not guaranteed to be preserved.

If no comparator is provided, the keys are sorted with respect to ``std::less{}``.
``comp`` is a function object,
which satisfies the ``Compare`` named requirement defined by the `C++ Standard`_.
If no ``comp`` object is provided, the keys are sorted with respect to ``std::less{}``.

.. code:: cpp
Expand All @@ -726,7 +728,9 @@ and this association is maintained throughout the sorting process.

The order of equal keys is preserved.

If no comparator is provided, the keys are sorted with respect to ``std::less{}``.
``comp`` is a function object,
which satisfies the ``Compare`` named requirement defined by the `C++ Standard`_.
If no ``comp`` object is provided, the keys are sorted with respect to ``std::less{}``.

.. _`C++ Standard`: https://isocpp.org/std/the-standard
.. _`SYCL`: https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html

0 comments on commit b607ceb

Please sign in to comment.