Issue |
133065
|
Summary |
[libc++] Use forwarding refs for predicates and projections in algorithms helpers
|
Labels |
libc++
|
Assignees |
|
Reporter |
imdj
|
Replace lvalue references with forwarding references for predicates and projections in algorithms helpers.
This point has been raised a couple of times in reviews:
- https://github.com/llvm/llvm-project/pull/114674#discussion_r1828013344
- https://github.com/llvm/llvm-project/pull/129565#discussion_r2006299321
Few helper functions already do this:
- https://github.com/llvm/llvm-project/blob/96925fa84c1e9cf4ffb68a7171a4b39d4677702a/libcxx/include/__algorithm/is_permutation.h#L73-L80
- https://github.com/llvm/llvm-project/blob/96925fa84c1e9cf4ffb68a7171a4b39d4677702a/libcxx/include/__algorithm/ranges_partition.h#L47
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs