[libcxx-commits] [PATCH] D126167: [libc++] Add ranges::max_element to the synopsis and ADL-proof the __min_element_impl calls

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon May 23 10:27:27 PDT 2022


ldionne added inline comments.


================
Comment at: libcxx/include/__algorithm/ranges_max_element.h:39
     auto __comp_lhs_rhs_swapped = [&](auto&& __lhs, auto&& __rhs) { return std::invoke(__comp, __rhs, __lhs); };
-    return __min_element_impl(__first, __last, __comp_lhs_rhs_swapped, __proj);
+    return ranges::__min_element_impl(__first, __last, __comp_lhs_rhs_swapped, __proj);
   }
----------------
Can we add tests?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126167/new/

https://reviews.llvm.org/D126167



More information about the libcxx-commits mailing list