stlab 3.0.0
Modern, modular C++ algorithms, data structures, and concurrency primitives
Loading...
Searching...
No Matches
stlab::make_when_any< T > Struct Template Reference

Helper to implement when_any for result type T. More...

#include <future.hpp>

Static Public Member Functions

template<class E, class F, class... Ts>
static auto make (const E &executor, F f, future< T > arg, future< Ts >... args)
 Joins inputs and schedules f with the first successful value and index.

Detailed Description

template<class T>
struct stlab::make_when_any< T >

Helper to implement when_any for result type T.

Member Function Documentation

◆ make()

template<class T>
template<class E, class F, class... Ts>
auto stlab::make_when_any< T >::make ( const E & executor,
F f,
future< T > arg,
future< Ts >... args )
inlinestatic

Joins inputs and schedules f with the first successful value and index.

  • Complexity: linear time and storage in the number of inputs.

The documentation for this struct was generated from the following file: