2

Is parallelism as such a part of the C++17 changes? When I Google "c++ parallelism" (without quotes), I come across a few different docs, and I can't piece together the timeline or the definitive changes.

  • There's at least one Technical Specification at open-std.org, like N4578.
  • There's this doc at the ISO CPP website.
  • A fairly recent and deep dive into parallel computing in C++ doesn't mention C++17 at all.

Where's the single source of truth? Is parallelism part of C++17 or a separate TS?

LearningFast
  • 1,163
  • 13
  • 13

1 Answers1

1

Well, you could have a look at the in-depth C++17 feature list. There, you will see that the Parallelism TS is part of C++17.

The single source of truth is isocpp. If you look at the status page, you will see that Parallelism I is in a dark green color, meaning that it will be merged in the C++ Standard.

The change is that a lot (if not all) of <algorithm>s have another overload which takes an ExecutionPolicy, where you can specify that the algorithm should run in parallel. Here is a complete list.

Community
  • 1
  • 1
Rakete1111
  • 47,013
  • 16
  • 123
  • 162