Namespaces
Variants
Views
Actions

Talk:cpp/algorithm/exclusive scan

From cppreference.com

Regarding: "{{par| d_first| the beginning of the destination range; may be equal to first}}". That's not what it says at the end of the description: "binary_op shall not invalidate iterators or subranges, nor modify elements in the ranges [first, last) or [d_first, d_first + (last - first)). Otherwise, the behavior is undefined.". Are you sure about the last edit? And if so, should the description be changed? --Ybab321 (talk) 17:12, 15 June 2016 (PDT)

They are not in conflict. Any assignment to the result range is done by exclusive_scan itself, not by binary_op, which still can't change anything. T. Canens (talk) 17:41, 15 June 2016 (PDT)