Skip to content

Instantly share code, notes, and snippets.

@parsa
Created February 15, 2018 17:47
Show Gist options
  • Select an option

  • Save parsa/d7d2c48177734a9031bbdf2f154c633c to your computer and use it in GitHub Desktop.

Select an option

Save parsa/d7d2c48177734a9031bbdf2f154c633c to your computer and use it in GitHub Desktop.
auto f = [](auto it)->hpx::future<int>& { return it->second; };
hpx::wait_all(
hpx::util::make_transform_iterator(items.begin(), f),
hpx::util::make_transform_iterator(items.end(), f));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment