Skip to content

Commit

Permalink
InputIt -> KeyIt
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Sobolev <dmitriy.sobolev@intel.com>
  • Loading branch information
dmitriy-sobolev committed Sep 3, 2024
1 parent fcd1561 commit a21e7e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/elements/oneDPL/source/parallel_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -691,11 +691,11 @@ The elements e of [start, end) must be partitioned with respect to the comparato
.. code:: cpp
template<typename Policy, typename KeyIt, typename ValueIt,
typename Comparator = std::less<typename std::iterator_traits<InputIt>::value_type>>
typename Comparator = std::less<typename std::iterator_traits<KeyIt>::value_type>>
void
sort_by_key(Policy&& policy, KeyIt keys_first, KeyIt keys_last,
ValueIt values_first,
Comparator comp = std::less<typename std::iterator_traits<InputIt>::value_type>());
Comparator comp = std::less<typename std::iterator_traits<KeyIt>::value_type>());
``oneapi::dpl::sort_by_key`` sorts the sequence of keys ``[keys_first, keys_last)``
and simultaneously permutes associated values at the same positions in the range
Expand All @@ -718,11 +718,11 @@ as defined by the `C++ Standard`_.
.. code:: cpp
template<typename Policy, typename KeyIt, typename ValueIt,
typename Comparator = std::less<typename std::iterator_traits<InputIt>::value_type>>
typename Comparator = std::less<typename std::iterator_traits<KeyIt>::value_type>>
void
stable_sort_by_key(Policy&& policy, KeyIt keys_first, KeyIt keys_last,
ValueIt values_first,
Comparator comp = std::less<typename std::iterator_traits<InputIt>::value_type>());
Comparator comp = std::less<typename std::iterator_traits<KeyIt>::value_type>());
``oneapi::dpl::stable_sort_by_key`` sorts the sequence of keys ``[keys_first, keys_last)``
and simultaneously permutes associated values at the same positions in the range
Expand Down

0 comments on commit a21e7e2

Please sign in to comment.