futures::when_any_result
Defined in header <futures/adaptor/when_any.hpp>
template <class Sequence>
struct when_any_result;
Result type for when_any_future objects.
Description
This is defined in a separate file because many other concepts depend on this definition, especially the inferences for unwrapping then
continuations, regardless of the when_any algorithm.
Public Types
Member Types | Definition |
---|---|
size_type | Type used to represent the number of futures in the result. (using) |
sequence_type | A sequence type with all the futures. (using) |
Public Attributes
Member Public Attributes | Description |
---|---|
index | Index of the element whose result was ready first. (public variable) |
tasks | The sequence of future objects waited for. (public variable) |
Public Types
using size_type
Defined in header <futures/adaptor/when_any.hpp>
using size_type = std::size_t;
Type used to represent the number of futures in the result.
using sequence_type
Defined in header <futures/adaptor/when_any.hpp>
using sequence_type = Sequence;
A sequence type with all the futures.
Description
This sequence might be a range or a tuple.
Public Attributes
variable index
Defined in header <futures/adaptor/when_any.hpp>
size_type index { static_cast<size_type>(-1) };
Index of the element whose result was ready first.
variable tasks
Defined in header <futures/adaptor/when_any.hpp>
sequence_type tasks;
The sequence of future objects waited for.
Updated on 2023-01-04