| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/iceyu/cpp-taskflow/master/example/reduce.cpp | [Back] [Original] |
// This example demonstrates how to use 'reduce' method.
#include
#include
#include
struct Data {
int a {::rand()};
int b {::rand()};
int transform() const {
return a*a + 2*a*b + b*b;
}
};
// Procedure: reduce
// This procedure demonstrates
void reduce() {
std::cout
| Web Proxy Viewer | New URL | Original Page |