-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[libc++][ranges] Implement ranges::contains_subrange #66963
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
[libc++][ranges] Implement ranges::contains_subrange #66963
Conversation
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.
Thank you for contributing! I have not looked at the tests yet. Please let me know if my comments on the header file is unclear. Thank you!
✅ With the latest revision this PR passed the C/C++ code formatter. |
Please make sure you add a description to your PR. This is what usually goes into the git log and we want those entries to be as descriptive and helpful for folks who read the git logs, thank you. |
Do you have any specific suggestions what should be in the message? The libc++ "I implement something" patches are most of the time quite straight-forward, since you can look at the standard and know what's going on. It's also the best source, since it's the authoritative document here, and is also what anybody who cares to actually look at the patch should check against for correctness. |
+1 -- I'm in favor of descriptive commit messages in general, but in this case I'm not sure what would be useful to add beyond "Implement ranges::contains_subrange". |
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.
Thank you for the patch!
libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp
Outdated
Show resolved
Hide resolved
libcxx/test/std/algorithms/alg.nonmodifying/alg.contains/ranges.contains_subrange.pass.cpp
Outdated
Show resolved
Hide resolved
Gentle ping. There's outstanding feedback to address on this review. @ZijunZhaoCCK if you don't think you'll have time to pursue this PR anymore, it's all good but please let us know so we can assign it to someone else! |
Sorry for the late reply! I can’t make it a priority right now, but I’ll definitely do it when things calm down, maybe in January. If someone want to do it right now, I can stop pursuing this PR. |
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 for your patch!
I mainly glossed over the patch, and left some comments.
f713b60
to
67c2e35
Compare
Just a gentle reminder. You should probably also update the release notes, the status page and the feature test macro: |
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix 5. add ranges::contains_subrange() in module.modulemap.in
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix 5. add ranges::contains_subrange() in module.modulemap.in
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix 5. add ranges::contains_subrange() in module.modulemap.in
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix 5. add ranges::contains_subrange() in module.modulemap.in
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.
LGTM. Thanks a lot for pushing this through and addressing all the feedback!
Looks like the CI failure was fixed by #77672 -- merging |
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix 5. add ranges::contains_subrange() in module.modulemap.in
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix 5. add ranges::contains_subrange() in module.modulemap.in
2. add several test cases: like when both range and subrange are empty 3. reformat 4. nit to fix 5. add ranges::contains_subrange() in module.modulemap.in
No description provided.