-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Implement Ranges Set Operations #1044
Conversation
* `mergeable` concept * algorithms: `ranges::includes`, `ranges::set_union`, `ranges::set_intersection`, `ranges::set_difference`, and `ranges::set_symmetric_difference`.
_Get_unwrapped(_STD move(_Last1)), _Get_unwrapped(_STD move(_First2)), | ||
_Get_unwrapped(_STD move(_Last2)), _Get_unwrapped_unverified(_STD move(_Result)), _Pass_fn(_Pred), | ||
_Pass_fn(_Proj1), _Pass_fn(_Proj2)); | ||
_Seek_wrapped(_First1, _STD move(_UResult.in1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering whether this one would be helpful (If yes than it is future work. No change requested):
template<class _It1, class _It2, class _Out, class _UIt1, class _UIt2, class _UOut>
in_in_out_result<_It1, _It2, _Out> _Seek_wrapped(_It1& _In1, _It2& _In2, _UOut& _Out, in_in_out_result<_UIt1, _UIt2, _UOut>&& _UResult);
Same for in_out_result
and in_in_result
which occur often enough that it makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably so. I think we should add a work item to scan through the unwrapping and rewrapping to find opportunities for simplification after/in conjunction with the pass to unwrap result iterators with _Get_unwrapped_n
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, very small suggestions.
I'm having trouble coming up with a witty comment here... perhaps a limerick? What rhymes with |
mergeable
conceptalgorithms:
ranges::includes
,ranges::set_union
,ranges::set_intersection
,ranges::set_difference
, andranges::set_symmetric_difference
.Partially addresses #39.