-
Notifications
You must be signed in to change notification settings - Fork 1.6k
<ranges> Implement P2442R1 chunk_view
#2685
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
Conversation
7e977eb to
decb004
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Partially addresses microsoft#2539
strega-nil-ms
left a comment
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.
Reviewed everything but chunk_view<input_range>
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.
Alright, just need to check the tests!
edit: tests look good! I'm approve post CR resolutions
This comment was marked as resolved.
This comment was marked as resolved.
|
I've pushed changes to address @CaseyCarter's feedback. I've also pushed an apparently-conflict-free merge with |
|
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
chunk_viewchunk_view
|
Merged with
|
|
Thanks for implementing the second chunk of this C++23 ranges feature! 😹 🎉 😻 |
Co-authored-by: Stephan T. Lavavej <[email protected]>
This implements the second part of P2442
chunk_viewAs always input ranges are a beauty to behold but...
Note I am not really sure about the access control of
outer-iterator::value_typeIt is depicted as a struct, but the setting kind of implies that we should guard access to its members.Also can someone explain why we always pass
*_Parentso that we needaddressofto reclaim the pointer instead of just the pointer.I tried to be clever with the noexcept specification. I thought I would remember that they need to be integer types or was it just integer-like? I usually assumed that assignment would be noexcept.
Partially fixes #2539