-
Notifications
You must be signed in to change notification settings - Fork 110
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] Improve requirements for iterator source types #550
Merged
danhoeflinger
merged 11 commits into
uxlfoundation:main
from
danhoeflinger:dev/dhoeflin/iterator_restrictions
Aug 23, 2024
Merged
[oneDPL] Improve requirements for iterator source types #550
danhoeflinger
merged 11 commits into
uxlfoundation:main
from
danhoeflinger:dev/dhoeflin/iterator_restrictions
Aug 23, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akukanov
reviewed
Aug 12, 2024
akukanov
reviewed
Aug 16, 2024
akukanov
reviewed
Aug 16, 2024
akukanov
approved these changes
Aug 20, 2024
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
…ike type (We would need to require that the reversed iterator satisfies legacy random access iterator, but we get that for free as reverse iterator does not modify that trait.) Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Co-authored-by: Alexey Kukanov <alexey.kukanov@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
danhoeflinger
force-pushed
the
dev/dhoeflin/iterator_restrictions
branch
from
August 20, 2024 18:21
ab0dc05
to
d00d244
Compare
Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR aims to improve the specification of
permutation_iterator
,zip_iterator
, andtransform_iterator
by adding requirements for their source iterator types.The source iterator type for each of these iterators share the same requirements, for which a name requirement
ValidParallelIteratorSource
has been defined. There may be a better or more concise name for this requirement.permutation_iterator
has a typeIndexMap
which has a modified set of requirements fromValidParallelIteratorSource
, because some types likezip_iterator
anddiscard_iterator
do not make sense in this setting. Additionally,IndexMap
can instead be a functor which transforms consecutive indices into a map. In practice, one implementation of this functionality would be to use atransform_iterator<counting_iterator, IndexMap>
to provide the iterator serving as theIndexMap
in a similar way to other incomingIndexMap
iterators.