OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
reduce_type.hpp
1 // This class define several reduce type
2 
4 template <class T>
5 struct reduce_type
6 {
7  typedef T type;
8 };
9 
11 template<> struct reduce_type<float[]>
12 {
14  typedef float type;
15 };
16 
18 template<> struct reduce_type<double[]>
19 {
21  typedef double type;
22 };
23 
25 template<> struct reduce_type<int[]>
26 {
28  typedef int type;
29 };
int type
define the int
Definition: reduce_type.hpp:28
In general a reduction of a type T produce a type T.
Definition: reduce_type.hpp:5
double type
define the double
Definition: reduce_type.hpp:21
float type
define the float
Definition: reduce_type.hpp:14