HPX - High Performance ParalleX

PrevUpHomeNext

Function template wait_all_n

hpx::wait_all_n

Synopsis

// In header: <hpx/lcos/wait_all.hpp>


template<typename InputIter> 
  InputIter wait_all_n(InputIter begin, std::size_t count);

Description

The function wait_all_n is a operator allowing to join on the result of all given futures. It AND-composes all future objects given and returns the same list of futures after they finished executing.

[Note] Note

The function wait_all_n returns after all futures have become ready. All input futures are still valid after wait_all_n returns.

Parameters:

begin

The iterator pointing to the first element of a sequence of future or shared_future objects for which wait_all_n should wait.

count

The number of elements in the sequence starting at first.

Returns:

The function wait_all_n will return an iterator referring to the first element in the input sequence after the last processed element.


PrevUpHomeNext