OutputIterator InputIterator InputIterator OutputIterator command_queue & An iterator pointing to the end of the result range. Calculates the partial sum of the elements in the range [first, last) and writes the resulting values to the range starting at at result.