cpp/algorithm/inner product

Computes inner product (i.e. sum of products) or performs ordered map/reduce operation on the range and the range beginning at.

@1@ Initializes the accumulator (of type ) with the initial value  and then modifies it with the expression for every iterator  in the range  in order and its corresponding iterator  in the range beginning at. For built-in meaning of + and *, this computes inner product of the two ranges.

@2@ Initializes the accumulator (of type ) with the initial value  and then modifies it with the expression for every iterator  in the range  in order and its corresponding iterator  in the range beginning at.

If or  invalidates any iterators (including the end iterators) or modify any elements of the range involved, the behavior is undefined.

Return value
after all modifications.