OutputIterator InputIterator InputIterator OutputIterator command_queue & An iterator pointing to the end of the result range. Performs an inclusive scan on the elements in the range [first, last) and stores the results in the range beginning at result. See also: exclusive_scan()