CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_6_1_2_SLHC2/src/JetMETCorrections/InterpolationTables/interface/ProperDblFromCmpl.h

Go to the documentation of this file.
00001 #ifndef NPSTAT_PROPERDBLFROMCMPL_HH_
00002 #define NPSTAT_PROPERDBLFROMCMPL_HH_
00003 
00015 #include <complex>
00016 
00017 namespace npstat {
00018     template <class T>
00019     struct ProperDblFromCmpl
00020     {
00021         typedef double type;
00022     };
00023 
00024     template <class T>
00025     struct ProperDblFromCmpl<std::complex<T> >
00026     {
00027         typedef T type;
00028     };
00029 
00030     template <class T>
00031     struct ProperDblFromCmpl<const std::complex<T> >
00032     {
00033         typedef T type;
00034     };
00035 
00036     template <class T>
00037     struct ProperDblFromCmpl<volatile std::complex<T> >
00038     {
00039         typedef T type;
00040     };
00041 
00042     template <class T>
00043     struct ProperDblFromCmpl<const volatile std::complex<T> >
00044     {
00045         typedef T type;
00046     };
00047 }
00048 
00049 #endif // NPSTAT_PROPERDBLFROMCMPL_HH_
00050