Assume I have a vector of futures:
std::vector<std::future<void>> future_vector;
and I insert futures to this vector in the following way:
future_vector.push_back( std::async(std::launch::async, <lambda_fn>, arg0, arg1,...))
For any future in the vector, is there anyway to get the args to the lambda function: arg0, arg1, arg2 etc, other than the return value of the future (std::future::get())?
Aucun commentaire:
Enregistrer un commentaire