Advertisement
Guest User

Untitled

a guest
Oct 30th, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.19 KB | None | 0 0
  1. struct Summarizer
  2. {
  3.     float sum;
  4.     Summarizer () : sum(0.) { };
  5.     void operator () (const WeightedHand &v)
  6.     {
  7.         sum += v.weight;
  8.     };
  9. } sum;
  10. std::for_each (&copy[0], &copy[1225], sum);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement