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