/*! take a vector s4u::CommPtr and return when one of them is finished.
* The return value is the rank of the first finished CommPtr. */
static int wait_any(const std::vector<CommPtr>* comms) { return wait_any_for(comms, -1); }
/*! take a vector s4u::CommPtr and return when one of them is finished.
* The return value is the rank of the first finished CommPtr. */
static int wait_any(const std::vector<CommPtr>* comms) { return wait_any_for(comms, -1); }