22

Parallel Algorithms with the STL

This chapter covers the topic of C++ parallelism, particularly with the tools and techniques introduced in C++17. Starting with the foundations, the chapter unfolds the power of execution policies that allow developers to harness parallel processing in their C++ Standard Template Library (STL) algorithms.

We will cover the following topics in this chapter:

  • Introduction to execution policies
  • Incorporating execution policies
  • The impact of constexpr on algorithms and containers
  • Performance considerations

Technical requirements

The code in this chapter can be found on GitHub:

https://github.com/PacktPublishing/Data-Structures-and-Algorithms-with-the-CPP-STL

Introduction to execution policies

Processors have ...

Get Data Structures and Algorithms with the C++ STL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.