7#if defined(_MSVC_LANG) || defined(_ICL)
9 namespace ccy = concurrency;
16template<
typename CallbackType,
typename PolicyType,
typename BeginType,
typename EndType>
18 BeginType begin_index, EndType end_index)
51 using lock_type = std::lock_guard<std::mutex>;
53 auto callback = [&
mutex](
auto index)
55 lock_type lock(
mutex);
57 std::cout <<
"Thread ID = " <<std::this_thread::get_id() <<
bool parallel_for(CallbackType &&callback, PolicyType &&policy, BeginType begin_index, EndType end_index)