-
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
Add unwrapping to move_sentinel #3098
Add unwrapping to move_sentinel #3098
Conversation
Adjusting labels - we usually use |
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.
Thanks! Looks good, all I found were 3 tiny nitpicks, and IIRC you also prefer brace construction when possible, so I'll validate and push changes to save time. (I'd request changes if I were less sure you'd prefer them.)
tests/std/tests/GH_002992_unwrappable_iter_sent_pairs/test.compile.pass.cpp
Show resolved
Hide resolved
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for this ranges performance improvement! 🚀 🎉 😻 🎁 |
Co-authored-by: Nicole Mazzuca <mazzucan@outlook.com> Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
fixes #3009
There are two new concepts -
_Weakly_unwrappable_sentinel
and_Weakly_unwrappable_iterator
- these are useful for implementation of wrapper types which are unwrappable when their underlying type is unwrappable (likemove_iterator
/move_sentinel
)