CAPD DynSys Library  5.2.0
capd::TypeTraits< int > Struct Reference

Traits of type int. More...

#include <capd/basicalg/TypeTraits.h>

Public Types

using Real = int
 
using T = int
 

Static Public Member Functions

static constexpr T max (T a, T b) noexcept
 
static constexpr T min (T a, T b) noexcept
 
static int zero ()
 returns object set to zero More...
 
static int one ()
 returns object set to one More...
 
static int numberOfDigits () throw ()
 number of decimal digits More...
 
static int epsilon () throw ()
 Machine epsilon (the difference between 1 and the least value greater than 1 that is representable). More...
 
static int convert (const S &obj)
 
static constexpr int abs (int a) noexcept
 
static bool isSingular (int a)
 

Static Public Attributes

static const bool isInterval
 this flag is true for all interval types More...
 

Detailed Description

Traits of type int.

Member Typedef Documentation

◆ Real

◆ T

using capd::TypeTraits< int >::T = int

Member Function Documentation

◆ abs()

static constexpr int capd::IntegralTypeTraits< int >::abs ( int  a)
inlinestaticconstexprnoexceptinherited

◆ convert()

static int capd::IntegralTypeTraits< int >::convert ( const S &  obj)
inlinestaticinherited

◆ epsilon()

static int capd::IntegralTypeTraits< int >::epsilon
throw (
)
inlinestaticinherited

Machine epsilon (the difference between 1 and the least value greater than 1 that is representable).

◆ isSingular()

static bool capd::IntegralTypeTraits< int >::isSingular ( int  a)
inlinestaticinherited

◆ max()

static constexpr T capd::TypeTraits< int >::max ( T  a,
T  b 
)
inlinestaticconstexprnoexcept

◆ min()

static constexpr T capd::TypeTraits< int >::min ( T  a,
T  b 
)
inlinestaticconstexprnoexcept

◆ numberOfDigits()

static int capd::IntegralTypeTraits< int >::numberOfDigits
throw (
)
inlinestaticinherited

number of decimal digits

◆ one()

static int capd::IntegralTypeTraits< int >::one
inlinestaticinherited

returns object set to one

◆ zero()

static int capd::IntegralTypeTraits< int >::zero
inlinestaticinherited

returns object set to zero

Member Data Documentation

◆ isInterval

const bool capd::IntegralTypeTraits< int >::isInterval
staticinherited

this flag is true for all interval types