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

Adding note about potential issue with ranges::iter_swap customizations. #1867

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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 @@ -106,6 +106,12 @@ Usage Example for Parallel Range Algorithms
oneapi::dpl::ranges::copy(oneapi::dpl::execution::dpcpp_default, view_in, std::span(vec_out));
}

Implementation Notes
--------------------
The ``sort`` and ``stable_sort`` algorithms provided use ``std::swap`` internally instead of
``std::ranges::iter_swap`` for swapping elements, as the C++ standard suggests but does not explicitly require.
As a result, customizations targeting ``std::ranges::iter_swap`` will not be respected.

.. rubric:: See also:

:doc:`range_based_api`
Loading