hpx::wait_all_nothrow#
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>
bool hpx::wait_all_nothrow(InputIter first, InputIter last)# The function wait_all_nothrow 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, similar to wait_all. It differs from wait_all in that it will not rethrow any exceptions captured by the given futures while they became ready.
Note
The function wait_all_nothrow returns after all futures have become ready. All input futures are still valid after wait_all_nothrow returns.
Note
Unlike wait_all, this function will not rethrow any exceptions captured by the futures while becoming ready. Any such exceptions are not rethrown by this call; the caller can use the returned bool to detect their presence.
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:
first – The iterator pointing to the first element of a sequence of future or shared_future objects for which wait_all_nothrow should wait.
last – The iterator pointing to the element after the last one of a sequence of future or shared_future objects for which wait_all_nothrow should wait.
- Returns:
Returns true if any of the given futures held an exception once it became ready, and false otherwise.
-
template<typename R>
bool hpx::wait_all_nothrow(std::vector<future<R>> &&futures)# The function wait_all_nothrow 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, similar to wait_all. It differs from wait_all in that it will not rethrow any exceptions captured by the given futures while they became ready.
Note
The function wait_all_nothrow returns after all futures have become ready. All input futures are still valid after wait_all_nothrow returns.
Note
Unlike wait_all, this function will not rethrow any exceptions captured by the futures while becoming ready. Any such exceptions are not rethrown by this call; the caller can use the returned bool to detect their presence.
- Parameters:
futures – A vector or array holding an arbitrary amount of future or shared_future objects for which wait_all_nothrow should wait.
- Returns:
Returns true if any of the given futures held an exception once it became ready, and false otherwise.
-
template<typename R, std::size_t N>
bool hpx::wait_all_nothrow(std::array<future<R>, N> &&futures)# The function wait_all_nothrow 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, similar to wait_all. It differs from wait_all in that it will not rethrow any exceptions captured by the given futures while they became ready.
Note
The function wait_all_nothrow returns after all futures have become ready. All input futures are still valid after wait_all_nothrow returns.
Note
Unlike wait_all, this function will not rethrow any exceptions captured by the futures while becoming ready. Any such exceptions are not rethrown by this call; the caller can use the returned bool to detect their presence.
- Parameters:
futures – A vector or array holding an arbitrary amount of future or shared_future objects for which wait_all_nothrow should wait.
- Returns:
Returns true if any of the given futures held an exception once it became ready, and false otherwise.
-
template<typename T>
bool hpx::wait_all_nothrow(hpx::future<T> const &f)# The function wait_all_nothrow 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, similar to wait_all. It differs from wait_all in that it will not rethrow any exceptions captured by the given future while it became ready.
Note
The function wait_all_nothrow returns after the future has become ready. The input future is still valid after wait_all_nothrow returns.
Note
Unlike wait_all, this function will not rethrow any exception captured by the future while becoming ready. Any such exception is silently discarded; the caller can use the returned bool to detect its presence.
- Parameters:
f – A future or shared_future for which wait_all_nothrow should wait.
- Returns:
Returns true if the given future held an exception once it became ready, and false otherwise.
-
template<typename ...T>
bool hpx::wait_all_nothrow(T&&... futures)# The function wait_all_nothrow 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, similar to wait_all. It differs from wait_all in that it will not rethrow any exceptions captured by the given futures while they became ready.
Note
The function wait_all_nothrow returns after all futures have become ready. All input futures are still valid after wait_all_nothrow returns.
Note
Unlike wait_all, this function will not rethrow any exceptions captured by the futures while becoming ready. Any such exceptions are not rethrown by this call; the caller can use the returned bool to detect their presence.
- Parameters:
futures – An arbitrary number of future or shared_future objects, possibly holding different types for which wait_all_nothrow should wait.
- Returns:
Returns true if any of the given futures held an exception once it became ready, and false otherwise.