Boost logo

Boost :

Subject: Re: [boost] Common future base class (was Re: Boost.Fibermini-review September 4-13)
From: Peter Dimov (lists_at_[hidden])
Date: 2015-09-06 12:35:01


Hartmut Kaiser wrote:

> template <typename Future...>
> requires(is_future<Future>)...
> future<tuple<Future...>> when_all(Future &&... f)
> {
> (await f)...;
> return make_tuple(std::forward<Future>(f)...);
> }

I've always found when_any much more interesting than when_all. Is it as
trivial to implement with await as when_all?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk