T InputIterator InputIterator T BinaryFunction command_queue & Returns the result of applying function to the elements in the range [first, last) and init. The difference between the reduce() function and the accumulate() function is that reduce() requires the binary operator to be commutative.