BALL::Limits< T > Class Template Reference
[Common Definitions]

#include <BALL/COMMON/limits.h>

List of all members.


Static Public Member Functions

static T min ()
static T max ()

Detailed Description

template<typename T>
class BALL::Limits< T >

Numeric limits class. This template class describes the minimum and maximum values for the differnet data types. It a substitute for the numeric_limits class described in the ISO/ANSI standard (chapter 18.2.1.1), as most compiler still do not support this feature (or more precisely: the header file <limits> is not implemented). If <limits> exists, Limits is just a wrapper around the numeric_limits class, otherwise it returns the value from the standard C header <limits.h>.


Member Function Documentation

template<typename T >
static T BALL::Limits< T >::max (  )  [inline, static]
template<typename T >
static T BALL::Limits< T >::min (  )  [inline, static]

Return the minimum value.

Returns:

T the minimum value for this datatype Return the maximum value.

T the maximum value for this datatype