Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function template wait_any

boost::mpi::wait_any — Wait until any non-blocking request has completed.

Synopsis

template<typename ForwardIterator> 
  std::pair< status, ForwardIterator > 
  wait_any(ForwardIterator first, ForwardIterator last);

Description

This routine takes in a set of requests stored in the iterator range [first,last) and waits until any of these requests has been completed. It provides functionality equivalent to MPI_Waitany.

Parameters:

first

The iterator that denotes the beginning of the sequence of request objects.

last

The iterator that denotes the end of the sequence of request objects. This may not be equal to first.

Returns:

A pair containing the status object that corresponds to the completed operation and the iterator referencing the completed request.


PrevUpHomeNext