Executing Code over Data: parallel_for_each The parallel_for_each function defines the code that you want to run on the accelerator against the data in the array or array_view object. Consider the following code from the introduction of this topic. #include <amp.h> #include <iostream> using namespace concurrency; void AddArrays() { int aCPP[] = {1, 2, 3, 4, 5}; int bCPP[] = {6, 7, 8, 9, 10}; int s
![C++ AMP Overview](https://cdn-ak-scissors.b.st-hatena.com/image/square/d6e4cb632c7025e9f5e05fd314fbf6dcd6144e8d/height=288;version=1;width=512/https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fmedia%2Fopen-graph-image.png)