hpx::wait_all_n#
Defined in header hpx/future.hpp.
See Public API for a list of names and headers that are part of the public HPX API.
See also:
-
template<typename InputIter>
void hpx::wait_all_n(InputIter begin, std::size_t count)# The function wait_all_n is an operator allowing to join on the result of all given futures. It AND-composes all future objects given and returns after they finished executing.
Note
The function wait_all_n returns after all futures have become ready. All input futures are still valid after wait_all_n returns.
Note
The function wait_all_n will rethrow any exceptions captured by the futures while becoming ready. If this behavior is undesirable, use wait_all_n_nothrow instead.
Note
The caller is responsible for keeping the futures container alive, unmoved, and unmodified until wait_all returns and all inspection of the futures is complete.
- 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.