Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Summarizer
- {
- float sum;
- Summarizer () : sum(0.) { };
- void operator () (const WeightedHand &v)
- {
- sum += v.weight;
- };
- } sum;
- std::for_each (©[0], ©[1225], sum);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement