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 | ||
|---|---|---|
| 33 | Nit: s/ ,/, /. | |
| 100 | Can you also add two test cases to check that a non-default projection and a non-default predicate work? | |
| 101 | Nit: s/checkt/check/. | |
| 102 | Nit: decltype(auto). | |
For the most part LGTM except for some minor issues.
| libcxx/include/__type_traits/enable_if.h | ||
|---|---|---|
| 13 | This seems unrelated, please commit it separately. | |
| libcxx/test/std/algorithms/alg.nonmodifying/alg.adjacent.find/ranges.adjacent_find.pass.cpp | ||
| 77 | Can't N be deduced? | |
| 105 | Please also test the complexity when a match is found. | |
- Address comments
| libcxx/include/__type_traits/enable_if.h | ||
|---|---|---|
| 13 | 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 | ||
| 77 | I don't think so. @var-const and I also thought it could be deduced, but I couldn't get it to work. | |
This seems unrelated, please commit it separately.