Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F19251061
ProperDblFromCmpl.hh
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
908 B
Referenced Files
None
Subscribers
None
ProperDblFromCmpl.hh
View Options
#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
Details
Attached
Mime Type
text/x-c
Expires
Tue, Sep 30, 5:47 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6556693
Default Alt Text
ProperDblFromCmpl.hh (908 B)
Attached To
Mode
rNPSTATSVN npstatsvn
Attached
Detach File
Event Timeline
Log In to Comment