tfel
Loading...
Searching...
No Matches
IsComplex.hxx File Reference

This file declares the IsComplex traits class and specialises it for standard numeric types. More...

Classes

struct  tfel::typetraits::IsComplex< T >
 Traits class which says it a given type stands for a complex numerical type. More...

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.

Macros

#define TFEL_META_IS_COMPLEX(X)
 An helper macro to specialise IsComplex for each standard numeric types.

Functions

 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< unsigned short >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< unsigned int >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< unsigned long int >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< short >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< int >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< long int >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< float >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< double >)
 tfel::typetraits::TFEL_META_IS_COMPLEX (tfel::math::Complex< long double >)

Detailed Description

This file declares the IsComplex traits class and specialises it for standard numeric types.

Author
Thomas Helfer
Date
04/07/2006

Macro Definition Documentation

◆ TFEL_META_IS_COMPLEX

#define TFEL_META_IS_COMPLEX ( X)
Value:
\
template <> \
struct IsComplex<X> { \ \
static constexpr bool cond = true; \
}; \ \
template <> \
struct IsComplex<const X> { \ \
static constexpr bool cond = true; \
}

An helper macro to specialise IsComplex for each standard numeric types.

Author
Thomas Helfer
Date
28/06/2006