[libcxx-commits] [PATCH] D105456: [libcxx][algorithms] adds `std::ranges::find`

Tim Song via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 7 20:51:28 PDT 2021


tcanens added inline comments.


================
Comment at: libcxx/include/__algorithm/find.h:41
+  for (; __first != __last; ++__first) {
+    if (_VSTD::__invoke(__proj, *__first) == __value) {
       break;
----------------
If all real projections are already passed by `reference_wrapper` then there's no need to use `__invoke`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105456



More information about the libcxx-commits mailing list