Search⌘ K
AI Features

Algorithm Update

Understand how C++17 enhances its Standard Template Library algorithms with execution policy parameters to enable parallelism. Learn about new algorithms like reduce, scan, and for_each variants that improve performance and support multithreaded execution. This lesson helps you apply these updates for more efficient C++17 programming.

We'll cover the following...

Execution Policy Parameter

The execution policy parameter was added to most of the existing algorithms.

Here’s the list:

adjacent_difference inplace_merge replace_copy
adjacent_find is_heap replace_copy_if
all_of is_heap_until replace_if
any_of is_partitioned reverse
copy is_sorted reverse_copy
copy_if is_sorted rotate
copy_n is_sorted_until rotate_copy
count
...