Use Parallel STL alternative to std::any_of

The std::any_of algorithm runs sequentially. To run in parallel, use the Parallel STL alternative with one of the following execution polices: with the following execution policy: %polices%

Example

...
std::any_of(std::execution::%policy%, a, a+n, [](float elem)
...
#include "pstl/execution"
#include "pstl/algorithm"
void foo(float* a, int n)
{
   std::any_of(std::execution::%policy%, a, a+n, [](float elem)
   {
       return elem > 100.f;
   });
}

Read More