for_each#

Interface#

MP#

void dr::mp::for_each(dr::distributed_range auto &&dr, auto op)#
template<dr::distributed_iterator DI>
void dr::mp::for_each(DI first, DI last, auto op)#

SP#

template<typename ExecutionPolicy, dr::distributed_range R, typename Fn>
void dr::sp::for_each(ExecutionPolicy &&policy, R &&r, Fn &&fn)#
template<typename ExecutionPolicy, dr::distributed_iterator Iter, typename Fn>
void dr::sp::for_each(ExecutionPolicy &&policy, Iter begin, Iter end, Fn &&fn)#
template<dr::distributed_range R, typename Fn>
void dr::sp::for_each(R &&r, Fn &&fn)#
template<dr::distributed_iterator Iter, typename Fn>
void dr::sp::for_each(Iter begin, Iter end, Fn &&fn)#

Description#

See also

std::ranges::for_each

Standard C++ algorithm

std::for_each

Standard C++ algorithm

Examples#