Is there an easy, standard method of acquiring the index of the current element from within the function/lambda? Something like:
std::for_each(std::par_unseq, vec.begin(), vec.end(), [](int element, size_t index)
{});
Additionally, are there any similar functions which allow doing a similar thing? I need the par_unseq. Something where the function parameter accepts an index rather than an element would be ideal.