Skip to content

Conversation

@dmitriy-sobolev
Copy link
Contributor

Adding rotate and rotate_copy parallel range algorithms into oneDPL specification.

@akukanov akukanov changed the title [oneDPL] Add rotate and rotate_copy [oneDPL][ranges] Add rotate and rotate_copy Oct 1, 2025
Comment on lines +558 to +559
rotate_copy (ExecutionPolicy&& pol, R&& r, std::ranges::iterator_t<R> middle,
OutR&& result);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
rotate_copy (ExecutionPolicy&& pol, R&& r, std::ranges::iterator_t<R> middle,
OutR&& result);
rotate_copy (ExecutionPolicy&& pol, R&& r, std::ranges::iterator_t<R> middle, OutR&& result);

It should be short enough for a single line.

std::ranges::borrowed_iterator_t<OutR>>
reverse_copy (ExecutionPolicy&& pol, R&& r, OutR&& result);
// rotate_copy
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest placing the rotate algorithms together with shift algorithms into a group of their own, named "Sequence reordering" or similarly. For the rationale, see #641 (comment)

Copy link
Contributor

@danhoeflinger danhoeflinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see no issues with the signatures.

@dmitriy-sobolev
Copy link
Contributor Author

The algorithms have been moved into #641.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants