9 void operator()(
int value) { m_total += value; }
11 friend std::ostream&
operator<<(std::ostream& os, Sum& s)
23 std::vector<int> vect({1, 2, 3, 4, 5, 6});
24 Sum
sum = for_each(vect.begin(), vect.end(), Sum());
25 std::cout << sum << std::endl;
std::ostream & operator<<(std::ostream &out, std::pair< T, U > const &p)
C::value_type sum(C const &c)