Search⌘ K

Exceptions

Learn how to handle exceptions when using parallel STL algorithms in C++17. Understand the behavior of resource allocation failures throwing std::bad_alloc and how user code exceptions invoke std::terminate. Gain insight into best practices for writing noexcept functors to improve error handling in multithreaded code.

We'll cover the following...

When using execution policies, you need to be pre​pared for two kinds of situations.

  • the scheduler or the implementation fails to allocate resources for the invocation -
...