Page MenuHomeHEPForge

ProperDblFromCmpl.hh
No OneTemporary

Size
908 B
Referenced Files
None
Subscribers
None

ProperDblFromCmpl.hh

#ifndef NPSTAT_PROPERDBLFROMCMPL_HH_
#define NPSTAT_PROPERDBLFROMCMPL_HH_
/*!
// \file ProperDblFromCmpl.hh
//
// \brief Compile-time deduction of the underlying floating point type from
// the given complex type
//
// Author: I. Volobouev
//
// January 2012
*/
#include <complex>
namespace npstat {
template <class T>
struct ProperDblFromCmpl
{
typedef double type;
};
template <class T>
struct ProperDblFromCmpl<std::complex<T> >
{
typedef T type;
};
template <class T>
struct ProperDblFromCmpl<const std::complex<T> >
{
typedef T type;
};
template <class T>
struct ProperDblFromCmpl<volatile std::complex<T> >
{
typedef T type;
};
template <class T>
struct ProperDblFromCmpl<const volatile std::complex<T> >
{
typedef T type;
};
}
#endif // NPSTAT_PROPERDBLFROMCMPL_HH_

File Metadata

Mime Type
text/x-c
Expires
Tue, Sep 30, 4:44 AM (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6556693
Default Alt Text
ProperDblFromCmpl.hh (908 B)

Event Timeline