Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Public Attributes | List of all members
JMATH::JLimits< T, false > Struct Template Reference

Template spacialisation of JMATH::JRandom for other data types. More...

#include <JLimits.hh>

Static Public Member Functions

static T min ()
 Get minimum possible value. More...
 
static T max ()
 Get maximum possible value. More...
 

Static Public Attributes

static const bool is_specialized = false
 

Detailed Description

template<class T>
struct JMATH::JLimits< T, false >

Template spacialisation of JMATH::JRandom for other data types.

The given template class should provide for the methods:

     static T min();
     static T max();

Definition at line 64 of file JLimits.hh.

Member Function Documentation

template<class T >
static T JMATH::JLimits< T, false >::min ( )
inlinestatic

Get minimum possible value.

Returns
minimum possible value

Definition at line 70 of file JLimits.hh.

71  {
72  return T::min();
73  }
template<class T >
static T JMATH::JLimits< T, false >::max ( )
inlinestatic

Get maximum possible value.

Returns
maximum possible value

Definition at line 81 of file JLimits.hh.

82  {
83  return T::max();
84  }

Member Data Documentation

template<class T >
const bool JMATH::JLimits< T, false >::is_specialized = false
static

Definition at line 86 of file JLimits.hh.


The documentation for this struct was generated from the following file: