Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ExecutionPolicy algorithms can be invoked using the function template std::for_each or one of its variants that accepts an ExecutionPolicy object as the first argument. For example, std::for_each(std::execution::par, std::begin(container), std::end(container), function) would invoke the algorithm on the container using parallel execution policy.