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

[oneDPL][ranges] An implementation fix for a random access range without operator[] and size() method #1969

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

MikeDvorskiy
Copy link
Contributor

@MikeDvorskiy MikeDvorskiy commented Dec 17, 2024

[oneDPL][ranges] + implementation fix for a random access range without operator[] and size() method.

Update: Discussed offline with @rarutyun.
The approach has a significant downside - range type is being changed, causing by a type-wrapper in the code.
The original issue should be discussed additionally with team and the architect in particular.
(As an option - to introduce oneapi::dpl::subscript_operator_fn global functor object with corresponding operator() overloads and use the function instead of operator[] everywhere on oneDPL for ranges.)

@MikeDvorskiy MikeDvorskiy marked this pull request as draft December 17, 2024 15:10
@MikeDvorskiy MikeDvorskiy force-pushed the dev/mdvorski/ranges_api_ra_impl_fix branch from a686234 to 0b537e6 Compare December 23, 2024 13:31
…without operator[] and size() method:

common test code for the all ranges test cases
…ut operator[] and size(); any_of, all_of, none_of, find_if, find, find_if_not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant