TRIQS/mpi 1.3.0
C++ interface to MPI
Loading...
Searching...
No Matches

#include <mpi/datatypes.hpp>

Detailed Description

template<typename T>
struct mpi::mpi_type< T >

Map C++ datatypes to the corresponding MPI datatypes.

C++ types which have a corresponding MPI datatype should specialize this struct. It is assumed that it has a static member function get which returns the MPI_Datatype object for a given C++ type. For example:

template <> struct mpi_type<int> {
static MPI_Datatype get() noexcept { return MPI_INT; }
}
Map C++ datatypes to the corresponding MPI datatypes.
Definition datatypes.hpp:57
Template Parameters
TC++ datatype.

Definition at line 57 of file datatypes.hpp.

Inheritance diagram for mpi::mpi_type< T >:
mpi::mpi_type< const T >

The documentation for this struct was generated from the following file: