I suppose this
"The type Ret must be such that an object of type iterator_traits<InputIt>::value_type can be assigned a value of type Ret."
should rather refer to iterator_traits<OutputIt>::valuetype ?
Mwe (talk) 05:53, 20 July 2015 (PDT)
- No, output iterators don't have value types. The text is correct as written (it's referring to the accumulator - the
sum = op(sum, *first); step). T. Canens (talk) 09:45, 20 July 2015 (PDT)