## 24.7 Standard Function Objects, Predicates, and Binders (cont.)

- E.g., place element-wise sum into a 3rd container:

  > `vector<int> a(100);
  > vector<int> b(100);
  > // Initialize a and b with values
  > vector<int> c(100);
  > transform(a.begin(), a.end(),
  > b.begin(), c.begin(), plus<int>());`

- E.g., use `accumulate` to multiply the product of elements of a vector:

  > `int prod = accumulate(a.begin(), a.end(),
  > 1, times<int>());`

prev |top |next