MPI_Send(V.data(), V.size(), /* ... */ );
1234567
std::vector<int> vec ; // ... //int MPI_Send(void *buf, int count, MPI_Datatype datatype, int dest, int tag, MPI_Comm comm) int result = MPI_Send( &vec.front(), vec.size(), MPI_INT, dest, tag, comm ) ;