#pragma once #include #ifdef __APPLE__ #define POOLSTL_STD_SUPPLEMENT #include #endif template void parallel_loop_container(const ContainerType& c, std::function func) { #ifdef __EMSCRIPTEN__ std::for_each(c.begin(), c.end(), func); #else std::for_each(std::execution::par_unseq, c.begin(), c.end(), func); #endif }