From d74b6650bd0cccc355f577e639cc5426c7e03941 Mon Sep 17 00:00:00 2001 From: Dmitriy Sobolev Date: Mon, 2 Sep 2024 15:24:06 +0100 Subject: [PATCH] Describe comparator Signed-off-by: Dmitriy Sobolev --- source/elements/oneDPL/source/parallel_api.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/elements/oneDPL/source/parallel_api.rst b/source/elements/oneDPL/source/parallel_api.rst index 5c20bb88d..01de36a18 100644 --- a/source/elements/oneDPL/source/parallel_api.rst +++ b/source/elements/oneDPL/source/parallel_api.rst @@ -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 @@ -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