[PATCH] D36089: [ELF] - Replace parallelForEach with ranged form.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 17:26:55 PDT 2017


ruiu added a comment.

I'm sort of neutral to this change, so if you prefer this style, go for it.



================
Comment at: ELF/Threads.h:70
 
-template <class IterTy, class FuncTy>
-void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) {
+template <typename R, class FuncTy> auto parallelForEach(R &&Range, FuncTy Fn) {
   if (Config->Threads)
----------------
Why auto?


https://reviews.llvm.org/D36089





More information about the llvm-commits mailing list