[libcxx-commits] [PATCH] D149686: [libc++][DISCUSSION] Exploring PSTL backend customization points

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 2 13:38:37 PDT 2023


ldionne added inline comments.


================
Comment at: libcxx/include/__algorithm/pstl_for_each.h:74
 for_each_n(_ExecutionPolicy&& __policy, _ForwardIterator __first, _Size __size, _Function __func) {
+  // TODO: Here we need to detect whether the back-end supports __for_each_n, and if so, call that?
+
----------------
I guess we could do an ADL call here and if that resolves, we use that, otherwise we use this implementation. There's still difficulties with the fact that we have both a `par` and an `unseq` backend, though.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149686



More information about the libcxx-commits mailing list