template <typename R, typename T>
Deferred<Future<R>()> defer(const PID<T>& pid, Future<R> (T::*method)())
{
return Deferred<Future<R>()>([=]() { return dispatch(pid, method); });
}
- what does
(T::*method)mean? I know what'sThere. But never seen something like*method. The preceding*has got me confused. - The function body seems pretty complicated. I would love to understand it syntactically by breaking down each part. Looks to me like lambda though.
Aucun commentaire:
Enregistrer un commentaire