1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
#ifndef HPC_AUX_PRIMITIVE_TYPE_H
#define HPC_AUX_PRIMITIVE_TYPE_H 1

#include <complex>

namespace hpc { namespace aux {

template <typename T>
struct PrimitiveType
{
    typedef T       Type;
};

template <typename T>
struct PrimitiveType<std::complex<T> >
{
    typedef T       Type;
};

} } // namespace aux, hpc

#endif // HPC_AUX_PRIMITIVE_TYPE_H