42 #ifndef TEUCHOS_MPITRAITS_H
43 #define TEUCHOS_MPITRAITS_H
56 #include "Teuchos_MPIComm.hpp"
74 template <
class T>
class TEUCHOS_DEPRECATED
MPITraits
81 #ifndef DOXYGEN_SHOULD_SKIP_THIS
89 static int type() {
return MPIComm::INT;}
95 template <>
class MPITraits<float>
99 static int type() {
return MPIComm::FLOAT;}
105 template <>
class MPITraits<double>
109 static int type() {
return MPIComm::DOUBLE;}
115 template <>
class MPITraits<char>
119 static int type() {
return MPIComm::CHAR;}
122 #endif //DOXYGEN_SHOULD_SKIP_THIS
Templated traits class that binds MPI types to C++ types.
static int type()
Return the MPI data type of the template argument.