diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h --- a/llvm/include/llvm/ADT/STLExtras.h +++ b/llvm/include/llvm/ADT/STLExtras.h @@ -1480,9 +1480,9 @@ /// Provide wrappers to std::for_each which take ranges instead of having to /// pass begin/end explicitly. -template -UnaryPredicate for_each(R &&Range, UnaryPredicate P) { - return std::for_each(adl_begin(Range), adl_end(Range), P); +template +UnaryFunction for_each(R &&Range, UnaryFunction F) { + return std::for_each(adl_begin(Range), adl_end(Range), F); } /// Provide wrappers to std::all_of which take ranges instead of having to pass @@ -1577,9 +1577,9 @@ /// Wrapper function around std::transform to apply a function to a range and /// store the result elsewhere. -template -OutputIt transform(R &&Range, OutputIt d_first, UnaryPredicate P) { - return std::transform(adl_begin(Range), adl_end(Range), d_first, P); +template +OutputIt transform(R &&Range, OutputIt d_first, UnaryFunction F) { + return std::transform(adl_begin(Range), adl_end(Range), d_first, F); } /// Provide wrappers to std::partition which take ranges instead of having to