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 | ||
---|---|---|
22 | Same comment on the #if guard as in D119751. | |
libcxx/test/std/algorithms/algorithms.results/in_found_result.pass.cpp | ||
56–57 | Consider swapping these lines into the usual in, found order. | |
72–74 | My usual comment here about [[maybe_unused]] being a code smell. Test that res2 got the right value. auto res2 = std::move(res); ? | |
76–78 | 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.