Details
Details
- Reviewers
• Quuxplusone Mordante var-const - Group Reviewers
Restricted Project - Commits
- rG68f4131c94d4: [libc++][ranges] Add ranges::in_found_result
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM % comments!
libcxx/include/__algorithm/in_found_result.h | ||
---|---|---|
21 | Same comment on the #if guard as in D119751. | |
libcxx/test/std/algorithms/algorithms.results/in_found_result.pass.cpp | ||
55–56 | Consider swapping these lines into the usual in, found order. | |
71–73 | My usual comment here about [[maybe_unused]] being a code smell. Test that res2 got the right value. auto res2 = std::move(res); ? | |
75–77 | Please use two different values here: int(true)==1 and bool(1)==true so this isn't testing anything. I suggest {2, false}. |
Same comment on the #if guard as in D119751.