Skip to content

Instantly share code, notes, and snippets.

@AntonBikineev
Created August 22, 2015 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntonBikineev/b4d79828fcb5f1176456 to your computer and use it in GitHub Desktop.
Save AntonBikineev/b4d79828fcb5f1176456 to your computer and use it in GitHub Desktop.
using namespace hpx::parallel;
std::vector<int> vec(20), vec1(20);
std::iota(std::begin(vec), std::end(vec), 0);
transform(std::cbegin(vec), std::cend(vec), std::begin(vec1), [](int n){ return n * 2; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment