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

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

Classes

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

Namespaces

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

Macros

#define TFEL_META_IS_REAL(X)
 An helper macro to specialise IsReal for each standard "real" numeric types.

Functions

 tfel::typetraits::TFEL_META_IS_REAL (float)
 tfel::typetraits::TFEL_META_IS_REAL (double)
 tfel::typetraits::TFEL_META_IS_REAL (long double)

Detailed Description

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

Author
Thomas Helfer
Date
04/07/2006

Macro Definition Documentation

◆ TFEL_META_IS_REAL

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

An helper macro to specialise IsReal for each standard "real" numeric types.

Author
Thomas Helfer
Date
28/06/2006