Concurrency::when_all function returns a std::vector<T>
with the return values of all tasks it awaited.
Are the values in the vector in any sort of order, or are they in the order in which the tasks completed?
Concurrency::when_all function returns a std::vector<T>
with the return values of all tasks it awaited.
Are the values in the vector in any sort of order, or are they in the order in which the tasks completed?
I can't find from microsoft documentation either. Made a simple test, the thread ends with somehow a random order, but the final output is 1,2,3,4,5. You can create 100 threads with different random loads, I think result won't change. The conclusion is you can safely use it with this assumption.