Details
- Reviewers
ldionne Mordante var-const - Group Reviewers
Restricted Project - Commits
- rG916e9052ba95: [libc++] Implement ranges::adjacent_find
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Almost LGTM, just a couple of test cases that can be added.
| libcxx/test/std/algorithms/alg.nonmodifying/alg.adjacent.find/ranges.adjacent_find.pass.cpp | ||
|---|---|---|
| 34 | Nit: s/ ,/, /. | |
| 101 | Can you also add two test cases to check that a non-default projection and a non-default predicate work? | |
| 102 | Nit: s/checkt/check/. | |
| 103 | Nit: decltype(auto). | |
For the most part LGTM except for some minor issues.
| libcxx/include/__type_traits/enable_if.h | ||
|---|---|---|
| 13 ↗ | (On Diff #432775) | This seems unrelated, please commit it separately. |
| libcxx/test/std/algorithms/alg.nonmodifying/alg.adjacent.find/ranges.adjacent_find.pass.cpp | ||
| 78 | Can't N be deduced? | |
| 106 | Please also test the complexity when a match is found. | |
- Address comments
| libcxx/include/__type_traits/enable_if.h | ||
|---|---|---|
| 13 ↗ | (On Diff #432775) | This was part of D126469. I don't know why it was part of this diff. |
| libcxx/test/std/algorithms/alg.nonmodifying/alg.adjacent.find/ranges.adjacent_find.pass.cpp | ||
| 78 | I don't think so. @var-const and I also thought it could be deduced, but I couldn't get it to work. | |
Nit: s/ ,/, /.