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

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 13:03:38 PDT 2017


George Rimar via Phabricator <reviews at reviews.llvm.org> writes:

> -template <class IterTy, class FuncTy>
> -void parallelForEach(IterTy Begin, IterTy End, FuncTy Fn) {
> +template <typename R, class FuncTy> auto parallelForEach(R &&Range, FuncTy Fn) {

Why an r-value reference?

Cheers,
Rafael


More information about the llvm-commits mailing list