-
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
Clean up validation #3082
Clean up validation #3082
Conversation
We can use ranges::is_sorted and ranges::binary_search and pass the checked extensions instead of passing the iterators directly.
Thanks! The use of the ranges algorithms here is a definite improvement (much less verbose). The mem-initializer-list change is a minor improvement (I agree that it's generally better to initialize members to their desired values instead of assigning them later). As I mentioned, I'm neutral on the addition of |
I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed. |
Thanks for this code cleanup! 😸 |
Co-authored-by: Stephan T. Lavavej <[email protected]> Co-authored-by: Casey Carter <[email protected]>
We can use ranges::is_sorted and ranges::binary_search and pass the checked extensions instead of passing the iterators directly.