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

Helper to implement when_any for void results. More...

#include <future.hpp>

Static Public Member Functions

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

Detailed Description

Helper to implement when_any for void results.

Member Function Documentation

◆ make()

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

Joins inputs and schedules f with the first successful index.

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

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